fix: 修改mfa check 判断 (#8561)

Co-authored-by: feng626 <1304903146@qq.com>
pull/8564/head
fit2bot 2022-07-11 10:48:01 +08:00 committed by GitHub
parent 0e6dbb3e5d
commit 06375110b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class ConfirmMFA(BaseConfirm):
display_name = 'MFA'
def check(self):
return self.user.active_mfa_backends
return self.user.active_mfa_backends and self.user.mfa_enabled
@property
def content(self):