##// END OF EJS Templates
fix(caching): fixed problems with Cache query for users....
fix(caching): fixed problems with Cache query for users. The old way of querying caused the user get query to be always cached, and returning old results even in 2fa forms. The new limited query doesn't cache the user object resolving issues

File last commit:

r5360:4cbf1ad2 default
r5365:ae8a165b default
Show More
verify_2fa.mako
37 lines | 1.4 KiB | application/x-mako | MakoHtmlLexer
<%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>