Browse Source

fix: cas ldap 登录失败 (#11908)

Co-authored-by: feng <1304903146@qq.com>
pull/11909/head
fit2bot 1 year ago committed by GitHub
parent
commit
6870df6d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/authentication/middleware.py

2
apps/authentication/middleware.py

@ -107,7 +107,7 @@ class ThirdPartyLoginMiddleware(mixins.AuthMixin):
response = redirect(guard_url)
finally:
if request.session.get('can_send_notifications') and \
self.request.session['auth_notice_required']:
self.request.session.get('auth_notice_required'):
request.session['can_send_notifications'] = False
user_log_id = self.request.session.get('user_log_id')
auth_acl_id = self.request.session.get('auth_acl_id')

Loading…
Cancel
Save