<%namespace name="base" file="/base/base.mako"/>

${_('Enable/Disable 2FA for your account')}

${h.secure_form(h.route_path('my_account_configure_2fa_update'), request=request)}
% if c.locked_2fa: ${_('2FA settings cannot be changed here, because 2FA was forced enabled by RhodeCode Administrator.')} % else:
% endif
${h.end_form()}
% if c.state_of_2fa: % if not c.user_seen_2fa_recovery_codes:

${_('2FA Recovery codes')}

${_('You have not seen your 2FA recovery codes yet.')} ${_('Please save them in a safe place, or you will lose access to your account in case of lost access to authenticator app.')}


${_('Show recovery codes')}
% endif ${h.secure_form(h.route_path('my_account_regenerate_2fa_recovery_codes'), request=request)}

${_('Regenerate 2FA recovery codes for your account')}

${h.end_form()} % endif