mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 09:51:00 +00:00
fix: 解决第三方登录无限重定向问题
This commit is contained in:
committed by
Jiangjie.Bai
parent
6af20d298d
commit
a14ebc5f0f
@@ -78,9 +78,10 @@ class ThirdPartyLoginMiddleware(mixins.AuthMixin):
|
|||||||
'redirect_url': reverse('authentication:login'),
|
'redirect_url': reverse('authentication:login'),
|
||||||
'auto_redirect': True,
|
'auto_redirect': True,
|
||||||
}
|
}
|
||||||
response = render(
|
response = render(request, 'authentication/auth_fail_flash_message_standalone.html', context)
|
||||||
request, 'authentication/auth_fail_flash_message_standalone.html', context)
|
|
||||||
else:
|
else:
|
||||||
|
if not self.request.session['auth_confirm_required']:
|
||||||
|
return response
|
||||||
guard_url = reverse('authentication:login-guard')
|
guard_url = reverse('authentication:login-guard')
|
||||||
args = request.META.get('QUERY_STRING', '')
|
args = request.META.get('QUERY_STRING', '')
|
||||||
if args:
|
if args:
|
||||||
|
Reference in New Issue
Block a user