Update comment

This commit is contained in:
w940853815
2025-07-08 11:02:08 +08:00
committed by 老广
parent 1790cd8345
commit f282b2079e
4 changed files with 165 additions and 137 deletions

View File

@@ -228,6 +228,7 @@ class MFAMixin:
self._do_check_user_mfa(code, mfa_type, user=user)
def check_user_mfa_if_need(self, user):
# 扫码登录的认证方式会执行该函数检查 mfa跳转登录认证方式则通过ThirdPartyLoginMiddleware中间件检验 mfa
if not settings.SECURITY_MFA_AUTH_ENABLED_FOR_THIRD_PARTY and \
self.request.session.get('auth_backend') in AUTHENTICATION_BACKENDS_THIRD_PARTY:
return