fix: cas oidc 登录失败 (#11899)

Co-authored-by: feng <1304903146@qq.com>
pull/11900/head
fit2bot 2023-10-18 18:51:28 +08:00 committed by GitHub
parent 00450121bc
commit a2fcc47436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class ThirdPartyLoginMiddleware(mixins.AuthMixin):
}
response = render(request, 'authentication/auth_fail_flash_message_standalone.html', context)
else:
if not self.request.session['auth_confirm_required']:
if not self.request.session.get('auth_confirm_required'):
return response
guard_url = reverse('authentication:login-guard')
args = request.META.get('QUERY_STRING', '')