Bugzilla – Attachment 123023 Details for
Bug 28660
Self checkout is not automatically logging in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28660: (bug 21325 follow-up) Fix auto self check
Bug-28660-bug-21325-follow-up-Fix-auto-self-check.patch (text/plain), 1.35 KB, created by
David Cook
on 2021-07-22 05:34:27 UTC
(
hide
)
Description:
Bug 28660: (bug 21325 follow-up) Fix auto self check
Filename:
MIME Type:
Creator:
David Cook
Created:
2021-07-22 05:34:27 UTC
Size:
1.35 KB
patch
obsolete
>From 6b1d4570cc0181c985bc8ec8eb6b49537c28ee5b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 6 Jul 2021 14:48:51 +0200 >Subject: [PATCH] Bug 28660: (bug 21325 follow-up) Fix auto self check > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Works as expected. >The need for an additional check of pref WebBasedSelfCheck is >merely theoretical. > >Signed-off-by: David Cook <dcook@prosentient.com.au> >--- > C4/Auth.pm | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 133cb03260..fd327bf618 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -1080,7 +1080,14 @@ sub checkauth { > else { > my $retuserid; > my $request_method = $query->request_method(); >- if ($request_method eq 'POST'){ >+ >+ if ( >+ $request_method eq 'POST' >+ || ( C4::Context->preference('AutoSelfCheckID') >+ && $q_userid eq C4::Context->preference('AutoSelfCheckID') ) >+ ) >+ { >+ > ( $return, $cardnumber, $retuserid, $cas_ticket ) = > checkpw( $dbh, $q_userid, $password, $query, $type ); > $userid = $retuserid if ($retuserid); >-- >2.11.0
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 28660
:
122617
|
122773
| 123023