Bugzilla – Attachment 163123 Details for
Bug 36308
SIP2 login broken by CSRF changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36308: Update sip login parameters
Bug-36308-Update-sip-login-parameters.patch (text/plain), 1.18 KB, created by
David Nind
on 2024-03-13 21:53:04 UTC
(
hide
)
Description:
Bug 36308: Update sip login parameters
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-03-13 21:53:04 UTC
Size:
1.18 KB
patch
obsolete
>From 8bd4a5e2db9fc6cc3194760469cc74e1dcdb9e36 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 13 Mar 2024 17:51:29 +0000 >Subject: [PATCH] Bug 36308: Update sip login parameters > >To test: >perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 -l CPL -m patron_information --patron=koha >Login fails >Apply patch, restart all >perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 -l CPL -m patron_information --patron=koha >Login succeeds > >Signed-off-by: David Nind <david@davidnind.com> >--- > C4/SIP/Sip/MsgType.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm >index a5d7931d72..3c52df30f4 100644 >--- a/C4/SIP/Sip/MsgType.pm >+++ b/C4/SIP/Sip/MsgType.pm >@@ -1753,8 +1753,8 @@ sub api_auth { > my ( $username, $password, $branch ) = @_; > $ENV{REMOTE_USER} = $username; > my $query = CGI->new(); >- $query->param( userid => $username ); >- $query->param( password => $password ); >+ $query->param( login_userid => $username ); >+ $query->param( login_password => $password ); > if ($branch) { > $query->param( branch => $branch ); > } >-- >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 36308
:
163117
|
163123
|
163161