From e533d5745c558abb7c089b71230ca33355db8c99 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 20 Feb 2024 13:37:21 +0100 Subject: [PATCH] Bug 36102: Do not repeat op or csrf_token on the login form - staff Needed for OPAC? Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt index 9f83efe32c..42200addd2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -127,6 +127,8 @@ [% 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" %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt index 6674b06f21..dcd8c7827c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt @@ -55,6 +55,10 @@ [% INCLUDE 'csrf-token.inc' %] [% FOREACH INPUT IN INPUTS %] + [% NEXT IF INPUT.name == "op" %] + [% NEXT IF INPUT.name == "csrf_token" %] + [% NEXT IF INPUT.name == "login_userid" %] + [% NEXT IF INPUT.name == "login_password" %] [% END %] -- 2.39.5