verify_2fa.mako
54 lines
| 1.8 KiB
| application/x-mako
|
MakoHtmlLexer
r5367 | <%inherit file="base/root.mako"/> | |||
r5360 | <%def name="title()"> | |||
r5367 | ${_('Verify 2FA')} | |||
r5360 | %if c.rhodecode_name: | |||
· ${h.branding(c.rhodecode_name)} | ||||
%endif | ||||
</%def> | ||||
r5367 | <style>body{background-color:#eeeeee;}</style> | |||
r5360 | ||||
r5373 | <div class="loginbox" style="width: 600px"> | |||
r5367 | <div class="header-account"> | |||
<div id="header-inner" class="title"> | ||||
<div id="logo"> | ||||
% if c.rhodecode_name: | ||||
<div class="branding"> | ||||
<a href="${h.route_path('home')}">${h.branding(c.rhodecode_name)}</a> | ||||
r5360 | </div> | |||
r5367 | % endif | |||
r5360 | </div> | |||
</div> | ||||
</div> | ||||
r5367 | ||||
<div class="loginwrapper"> | ||||
<rhodecode-toast id="notifications"></rhodecode-toast> | ||||
<div id="register"> | ||||
<div class="sign-in-title"> | ||||
<h1>${_('Verify the code from the app')}</h1> | ||||
</div> | ||||
<div class="inner form"> | ||||
${h.secure_form(h.route_path('check_2fa'), request=request, id='totp_form')} | ||||
<label for="totp">${_('Verification code')}:</label> | ||||
${h.text('totp', class_="form-control")} | ||||
%if 'totp' in errors: | ||||
<span class="error-message">${errors.get('totp')}</span> | ||||
<br /> | ||||
%endif | ||||
<p class="help-block">${_('Enter the code from your two-factor authenticator app. If you\'ve lost your device, you can enter one of your recovery codes.')}</p> | ||||
${h.submit('send', _('Verify'), class_="btn sign-in")} | ||||
<p class="help-block pull-right"> | ||||
RhodeCode ${c.rhodecode_edition} | ||||
</p> | ||||
${h.end_form()} | ||||
</div> | ||||
</div> | ||||
</div> | ||||
r5360 | </div> | |||
r5367 | ||||