# HG changeset patch # User RhodeCode Admin # Date 2024-04-24 09:29:09 # Node ID 2e9ebb75a979170b5cb238b5cfd859cfa8721abe # Parent 6dc425cb765bc82b591edaf59a3b461614afd3e2 fix(2fa): fixed case of imports for templates. diff --git a/rhodecode/apps/my_account/views/my_account.py b/rhodecode/apps/my_account/views/my_account.py --- a/rhodecode/apps/my_account/views/my_account.py +++ b/rhodecode/apps/my_account/views/my_account.py @@ -209,7 +209,7 @@ class MyAccountView(BaseAppView, DataGri def my_account_2fa(self): _ = self.request.translate c = self.load_default_context() - c.active = '2FA' + c.active = '2fa' user_instance = c.auth_user.get_instance() locked_by_admin = user_instance.has_forced_2fa c.state_of_2fa = user_instance.has_enabled_2fa @@ -223,7 +223,7 @@ class MyAccountView(BaseAppView, DataGri def my_account_2fa_update(self): _ = self.request.translate c = self.load_default_context() - c.active = '2FA' + c.active = '2fa' user_instance = c.auth_user.get_instance() state = self.request.POST.get('2fa_status') == '1' diff --git a/rhodecode/templates/admin/my_account/my_account.mako b/rhodecode/templates/admin/my_account/my_account.mako --- a/rhodecode/templates/admin/my_account/my_account.mako +++ b/rhodecode/templates/admin/my_account/my_account.mako @@ -28,7 +28,7 @@
  • ${_('Profile')}
  • ${_('Emails')}
  • ${_('Password')}
  • -
  • ${_('2FA')}
  • +
  • ${_('2FA')}
  • ${_('Bookmarks')}
  • ${_('Auth Tokens')}
  • ${_('SSH Keys')}