check if more than one role has 2fa enabled
This commit is contained in:
parent
f34d52fb65
commit
99700fb198
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ class LoginManager:
|
|||
i in user_obj.roles))
|
||||
two_factor_auth_user = len(frappe.db.sql(query))
|
||||
|
||||
if two_factor_auth_user == 1:
|
||||
if two_factor_auth_user >= 1:
|
||||
|
||||
otp_secret = frappe.db.get_default(self.user + '_otpsecret')
|
||||
verification_method = frappe.db.get_value('System Settings', None, 'two_factor_method')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue