Bugzilla – Attachment 162236 Details for
Bug 35935
Wrong branch picked after an incorrect login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35935: Ensure login branch will be used after incorrect login
Bug-35935-Ensure-login-branch-will-be-used-after-i.patch (text/plain), 1.73 KB, created by
Julian Maurice
on 2024-02-16 09:12:31 UTC
(
hide
)
Description:
Bug 35935: Ensure login branch will be used after incorrect login
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2024-02-16 09:12:31 UTC
Size:
1.73 KB
patch
obsolete
>From 3e577d134ef322fb844287476da6708059f09a12 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 30 Jan 2024 09:02:19 +0100 >Subject: [PATCH] Bug 35935: Ensure login branch will be used after incorrect > login > >If a different branch is selected after an incorrect login, the previous >branch will be used. > >To recreate: >* login with foo/bar, select CPL => FAIL >* login with koha/koha, select another branch => OK but CPL is picked! > >It was caused by a dup of "branch" in CGI param list (and first was >picked). > >This patch patch also removes "koha_login_context" to not have it twice. >You can also open the source of the page to confirm that form#loginform >contains "branch" and "koha_login_context" in hidden inputs. > >Signed-off-by: Magnus Enger <magnus@libriotech.no> >Tested in KTD. Works as advertised. >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >index 73e97bc8647..1980f4dce98 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt >@@ -125,6 +125,8 @@ > <form action="[% script_name | html %]" method="post" name="loginform" id="loginform" class="validated"> > <input type="hidden" name="koha_login_context" value="intranet" /> > [% FOREACH INPUT IN INPUTS %] >+ [% NEXT IF INPUT.name == "koha_login_context" %] >+ [% NEXT IF INPUT.name == "branch" %] > <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" /> > [% END %] > <p><label for="userid">Username:</label> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35935
:
161623
|
161625
| 162236