aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/auth/2fa/form-add.html
blob: 3603ec46c19da0d4331799a9a44eb63cf0bb60eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<p>[% loc('Please scan this image with your app, or enter the text code into your app, then generate a new one-time code and enter it below:') %]</p>

<p align="center"><img src="[% qr_code %]" alt=""></p>
<p align="center">[% secret32.replace('(....)', '$1 ') %]</p>

[% IF incorrect_code %]
    <div class="form-error">[% loc('Sorry, that wasn&rsquo;t the correct code') %].
    [% loc('Try again') %]:</div>
[% END %]

<label for="2fa_code">[% loc('Code') %]</label>
<div class="form-txt-submit-box">
    <input autofocus class="form-control" type="number" id="2fa_code" name="2fa_code" value="" required>
    <input type="submit" value="[% loc('Submit') %]" class="btn-primary">
</div>
<input type="hidden" name="secret32" value="[% secret32 %]">
<input type="hidden" name="2fa_action" value="confirm">