fixed outdated import in oauth middleware

This commit is contained in:
Oliver Zander 2025-11-05 09:34:22 +01:00 committed by Tobias Herre
parent ebd7ebd3fd
commit 4d7058f460
1 changed files with 1 additions and 2 deletions

View File

@ -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)