[% INCLUDE 'header.html', title = loc('Security'), bodyclass = 'fullwidthpage' %] [% IF token_generated %]

[% loc('Your token has been generated') %]

[% loc('Token:') %] [% existing_token | html %]

[% loc('Your account') %]

[% ELSIF toggle_2fa_on %]

[% loc('Two-factor authentication has been activated') %]

[% secret32.replace('(....)', '$1 ') %]

[% loc('Your account') %]

[% ELSIF toggle_2fa_off %]

[% loc('Two-factor authentication has been deactivated') %]

[% loc('Your account') %]

[% ELSE %]

[% loc('Security') %]

[% IF existing_token %]

[% loc('Current token:') %] [% existing_token | html %]

[% END %]

[% IF c.user.is_superuser %] [% END %]

[% IF existing_token %]

[% loc('If you generate a new token the existing token will no longer work.') %]

[% END %] [% END %] [% INCLUDE 'footer.html' %]