diff --git a/rhodecode/apps/login/views.py b/rhodecode/apps/login/views.py --- a/rhodecode/apps/login/views.py +++ b/rhodecode/apps/login/views.py @@ -495,7 +495,7 @@ class LoginView(BaseAppView): secret = form_details['secret_totp'] user_instance.init_2fa_recovery_codes(persist=True, force=True) - user_instance.2fa_secret = secret + user_instance.secret_2fa = secret Session().commit() raise HTTPFound(self.request.route_path('my_account_configure_2fa', _query={'show-recovery-codes': 1}))