chore(2fa): refactor some attributes for users

This commit is contained in:
RhodeCode Admin 2024-04-24 18:06:20 +02:00
parent aad99df521
commit 922adcf2e7
4 changed files with 16 additions and 11 deletions

View file

@ -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):