[Update] 修改user list api

This commit is contained in:
ibuler
2019-11-19 11:20:26 +08:00
parent 0c349f9350
commit bf40aa8df0
5 changed files with 32 additions and 19 deletions

View File

@@ -404,7 +404,8 @@ class MFAMixin:
def mfa_enabled_but_not_set(self):
if self.mfa_enabled and \
self.mfa_is_otp() and not self.otp_secret_key:
self.mfa_is_otp() and \
not self.otp_secret_key:
return True
return False