##// END OF EJS Templates
deps: fixed deps for security fixes
deps: fixed deps for security fixes

File last commit:

r5373:834643be default
r5643:1036a517 default
Show More
verify_2fa.mako
54 lines | 1.8 KiB | application/x-mako | MakoHtmlLexer
feat(2fa): refactor logic arround validation/recoverycodes and workflows of configuration of 2fa...
r5367 <%inherit file="base/root.mako"/>
feat(2fa): Added 2fa option. Fixes: RCCE-65
r5360 <%def name="title()">
feat(2fa): refactor logic arround validation/recoverycodes and workflows of configuration of 2fa...
r5367 ${_('Verify 2FA')}
feat(2fa): Added 2fa option. Fixes: RCCE-65
r5360 %if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
feat(2fa): refactor logic arround validation/recoverycodes and workflows of configuration of 2fa...
r5367 <style>body{background-color:#eeeeee;}</style>
feat(2fa): Added 2fa option. Fixes: RCCE-65
r5360
feat(2fa): updated and UI fixes...
r5373 <div class="loginbox" style="width: 600px">
feat(2fa): refactor logic arround validation/recoverycodes and workflows of configuration of 2fa...
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>
feat(2fa): Added 2fa option. Fixes: RCCE-65
r5360 </div>
feat(2fa): refactor logic arround validation/recoverycodes and workflows of configuration of 2fa...
r5367 % endif
feat(2fa): Added 2fa option. Fixes: RCCE-65
r5360 </div>
</div>
</div>
feat(2fa): refactor logic arround validation/recoverycodes and workflows of configuration of 2fa...
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>
feat(2fa): Added 2fa option. Fixes: RCCE-65
r5360 </div>
feat(2fa): refactor logic arround validation/recoverycodes and workflows of configuration of 2fa...
r5367