mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 16:31:33 +00:00
fix: OTP_IN_RADIUS 与 mfa 冲突
This commit is contained in:
@@ -346,6 +346,10 @@ class AuthMixin(PasswordEncryptionViewMixin):
|
||||
def check_user_mfa_if_need(self, user):
|
||||
if self.request.session.get('auth_mfa'):
|
||||
return
|
||||
|
||||
if settings.OTP_IN_RADIUS:
|
||||
return
|
||||
|
||||
if not user.mfa_enabled:
|
||||
return
|
||||
unset, url = user.mfa_enabled_but_not_set()
|
||||
|
Reference in New Issue
Block a user