diff options
-rw-r--r-- | templates/web/base/auth/generate_token.html | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/templates/web/base/auth/generate_token.html b/templates/web/base/auth/generate_token.html index a24c7ccd2..9152d0cb3 100644 --- a/templates/web/base/auth/generate_token.html +++ b/templates/web/base/auth/generate_token.html @@ -8,7 +8,7 @@ INCLUDE 'header.html', title = loc('Security'), bodyclass = 'fullwidthpage' <h1>[% loc('Your token has been generated') %]</h1> <p> - <strong>[% loc('Token:') %]</strong> + <strong>[% loc('Token') %]:</strong> <span>[% existing_token | html %]</span> </p> @@ -45,17 +45,12 @@ INCLUDE 'header.html', title = loc('Security'), bodyclass = 'fullwidthpage' <h1>[% loc('Security') %]</h1> <form action="[% c.uri_for_action('/auth/profile/generate_token') %]" method="post" name="generate_token"> - <input type="hidden" name="token" value="[% csrf_token %]"> - [% IF existing_token %] - <p> - <strong>[% loc('Current token:') %]</strong> - <span>[% existing_token | html %]</span> - </p> - [% END %] +<h2>[% loc('Two-factor authentication') %]</h2> + + <input type="hidden" name="token" value="[% csrf_token %]"> <p> - <input name="generate_token" type="submit" class="btn" value="[% existing_token ? loc('Replace token') : loc('Generate token') %]"> [% IF c.user.is_superuser || c.user.from_body %] [% IF has_2fa %] <input name="2fa_activate" type="submit" class="btn" value="[% loc('Change two-factor authentication') %]"> @@ -67,13 +62,29 @@ INCLUDE 'header.html', title = loc('Security'), bodyclass = 'fullwidthpage' [% END %] [% END %] </p> -</form> + +<h2>[% loc('Token') %]</h2> + + <input type="hidden" name="token" value="[% csrf_token %]"> + + [% IF existing_token %] + <p> + <strong>[% loc('Current token:') %]</strong> + <span>[% existing_token | html %]</span> + </p> + [% END %] + + <p> + <input name="generate_token" type="submit" class="btn" value="[% existing_token ? loc('Replace token') : loc('Generate token') %]"> + </p> [% IF existing_token %] <p> [% loc('If you generate a new token the existing token will no longer work.') %] </p> [% END %] + +</form> [% END %] [% INCLUDE 'footer.html' %] |