Bug 38714: members/two_factor_auth.tt

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-12-19 15:32:24 +01:00 committed by Katrin Fischer
parent c096111862
commit 3c7dae5212
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 10 deletions

View File

@ -51,11 +51,7 @@
[% PROCESS registration_form %]
<div id="registration-status">
[% IF patron.auth_method == "two-factor" %]
<div id="registration-status-enabled">
[% ELSE %]
<div id="registration-status-enabled" style="display: none;">
[% END %]
<div id="registration-status-enabled" [% IF patron.auth_method != "two-factor" %]style="display: none;"[% END %]>
<div class="alert alert-info two-factor-status">Status: Enabled</div>
<form id="two-factor-auth" action="/cgi-bin/koha/members/two_factor_auth.pl" method="post">
@ -65,11 +61,7 @@
</form>
</div>
[% IF patron.auth_method == "password" %]
<div id="registration-status-disabled">
[% ELSE %]
<div id="registration-status-disabled" style="display: none;">
[% END %]
<div id="registration-status-disabled" [% IF patron.auth_method != "password" %]style="display: none;"[% END %]>
<div class="alert alert-info two-factor-status">Status: Disabled</div>
[% IF Koha.Preference('TwoFactorAuthentication') == 'enforced' %]
<div>Two-factor authentication is mandatory to login. If you do not enable now it will be asked at your next login.</div>