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:
Jonathan Druart 2024-02-28 09:09:05 +01:00
parent 2529a9d3a6
commit e345d34ae5
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0

View file

@ -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 %]