chore(2fa): refactor some attributes for users
This commit is contained in:
parent
aad99df521
commit
922adcf2e7
4 changed files with 16 additions and 11 deletions
|
|
@ -194,7 +194,7 @@ class BaseAppView(object):
|
|||
if not user_obj:
|
||||
return
|
||||
|
||||
if user_obj.has_check_2fa_flag and view_name != self.VERIFY_2FA_VIEW:
|
||||
if user_obj.check_2fa_required and view_name != self.VERIFY_2FA_VIEW:
|
||||
raise HTTPFound(self.request.route_path(self.VERIFY_2FA_VIEW))
|
||||
|
||||
def _log_creation_exception(self, e, repo_name):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue