Bug 36102: Add cud-login to the login form (2FA)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
2529a9d3a6
commit
e345d34ae5
1 changed files with 5 additions and 0 deletions
|
@ -212,8 +212,13 @@
|
||||||
[% ELSIF TwoFA_prompt %]
|
[% ELSIF TwoFA_prompt %]
|
||||||
<form action="[% script_name | html %]" method="post" name="loginform" id="loginform" autocomplete="off">
|
<form action="[% script_name | html %]" method="post" name="loginform" id="loginform" autocomplete="off">
|
||||||
[% INCLUDE 'csrf-token.inc' %]
|
[% INCLUDE 'csrf-token.inc' %]
|
||||||
|
<input type="hidden" name="op" value="cud-login" />
|
||||||
<input type="hidden" name="koha_login_context" value="intranet" />
|
<input type="hidden" name="koha_login_context" value="intranet" />
|
||||||
[% FOREACH INPUT IN INPUTS %]
|
[% FOREACH INPUT IN INPUTS %]
|
||||||
|
[% NEXT IF INPUT.name == "op" %]
|
||||||
|
[% NEXT IF INPUT.name == "csrf_token" %]
|
||||||
|
[% NEXT IF INPUT.name == "koha_login_context" %]
|
||||||
|
[% NEXT IF INPUT.name == "branch" %]
|
||||||
<input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
|
<input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF invalid_otp_token %]
|
[% IF invalid_otp_token %]
|
||||||
|
|
Loading…
Reference in a new issue