##// END OF EJS Templates
shell: remove module level imports
shell: remove module level imports

File last commit:

r5360:4cbf1ad2 default
r5364:f90791c0 default
Show More
verify_2fa.mako
37 lines | 1.4 KiB | application/x-mako | MakoHtmlLexer
feat(2fa): Added 2fa option. Fixes: RCCE-65
r5360 <%inherit file="/base/root.mako"/>
<%def name="title()">
${_('Check 2FA')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<div class="box">
<div class="verify2FA">
${h.secure_form(h.route_path('check_2fa'), request=request, id='totp_form')}
<div class="form mt-4" style="position: relative; margin-left: 35%; margin-top: 20%;">
<div class="field">
<p>
<div class="label">
<label for="totp" class="form-label text-dark font-weight-bold" style="text-align: left;">${_('Verify the code from the app')}:</label>
</div>
</p>
<p>
<div>
<div class="input-group">
${h.text('totp', class_="form-control", style='width: 38%;')}
<div id="formErrors">
%if 'totp' in errors:
<span class="error-message">${errors.get('totp')}</span>
<br />
%endif
</div>
<br />
${h.submit('save',_('Verify'),class_="btn btn-primary", style='width: 40%;')}
</div>
</div>
</p>
</div>
</div>
</div>
</div>