fix(forced 2fa): fixed forced 2fa functionality. Fixes: RCCE-68

This commit is contained in:
Serhii Ilin 2024-05-16 16:01:22 +03:00
parent d069311e52
commit f0066be1ff
2 changed files with 3 additions and 1 deletions

View file

@ -182,6 +182,8 @@ class BaseAppView(object):
"warning",
ignore_duplicate=False,
)
# Special case for users created "on the fly" (ldap case for new user)
user_obj.check_2fa_required = False
raise HTTPFound(self.request.route_path(self.SETUP_2FA_VIEW))
def _maybe_needs_2fa_check(self, view_name, user_obj):