diff --git a/apps/authentication/middleware.py b/apps/authentication/middleware.py index 99aabb2c3..572ad39dc 100644 --- a/apps/authentication/middleware.py +++ b/apps/authentication/middleware.py @@ -92,7 +92,7 @@ class ThirdPartyLoginMiddleware(mixins.AuthMixin): 'title': _('Authentication failed'), 'message': _('Authentication failed (before login check failed): {}').format(e), 'interval': 10, - 'redirect_url': reverse('authentication:login') + '?admin=0', + 'redirect_url': reverse('authentication:login') + '?admin=1', 'auto_redirect': True, } response = render(request, 'authentication/auth_fail_flash_message_standalone.html', context)