From 6870df6d75ac59c2d5ea61121b6802447e64ebc5 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:24:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cas=20ldap=20=E7=99=BB=E5=BD=95=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20(#11908)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/authentication/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/middleware.py b/apps/authentication/middleware.py index 9fce3dcb6..10659a53a 100644 --- a/apps/authentication/middleware.py +++ b/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')