# HG changeset patch # User RhodeCode Admin # Date 2024-04-24 16:07:14 # Node ID 7ec0fbd3cc241111db8af9d2c6d74516c57e77a9 # Parent ced3d33bd7a2b163b10a90538943aa5ac3780223 fix(2fa): fixed typo from refactor 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}))