From 3d66fe4758b5c5050c9bf62f8f77d8bbf59abde1 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Thu, 18 May 2023 14:58:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=A9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/mixins.py b/apps/authentication/mixins.py index 555adf715..247e2e4a0 100644 --- a/apps/authentication/mixins.py +++ b/apps/authentication/mixins.py @@ -213,7 +213,7 @@ class MFAMixin: def check_user_mfa_if_need(self, user): if self.request.session.get('auth_mfa') and \ - self.request.session.get('auth_mfa_username') == user.username: + self.request.session.get('auth_mfa_username') == user.username: return if not user.mfa_enabled: return