<%inherit file="base/root.mako"/> <%def name="title()"> ${_('Setup 2FA')} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif

${_('Setup the authenticator app')}

Authenticator apps like Google Authenticator, etc. generate one-time passwords that are used as a second factor to verify you identity.

${h.secure_form(h.route_path('setup_2fa'), request=request, id='totp_form')}

${_('Use an authenticator app to scan.')}

qr-code

${_('Unable to scan?')} ${_('Click here')}

${h.text('totp', class_='form-control', style='width: 40%;')}
% if 'totp' in errors: ${errors.get('totp')}
% endif
${h.submit('verify_2fa',_('Verify'),class_="btn btn-primary", style='width: 40%;')}

${h.end_form()}