forked from beba/foerderbarometer
fixed outdated import in oauth middleware
This commit is contained in:
parent
ebd7ebd3fd
commit
4d7058f460
|
|
@ -7,7 +7,6 @@ from django.utils.deprecation import MiddlewareMixin
|
|||
from django.conf import settings
|
||||
|
||||
from input.models import Extern
|
||||
from input.views import ExternView
|
||||
|
||||
|
||||
class OAuthMiddleware(MiddlewareMixin):
|
||||
|
|
@ -45,7 +44,7 @@ class OAuthMiddleware(MiddlewareMixin):
|
|||
redirect_uri = request.session.pop('redirect_uri', None)
|
||||
if redirect_uri is not None:
|
||||
return redirect(redirect_uri)
|
||||
return redirect(ExternView)
|
||||
return redirect('extern')
|
||||
|
||||
if request.session.get('token', None) is not None:
|
||||
current_user = self.get_current_user(sso_client, request)
|
||||
|
|
|
|||
Loading…
Reference in New Issue