Bugzilla – Attachment 122617 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.15 KB, created by
Jonathan Druart
on 2021-07-06 12:50:16 UTC
(
hide
)
Description:
Bug 28660: (bug 21325 follow-up) Fix auto self check
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-07-06 12:50:16 UTC
Size:
1.15 KB
patch
obsolete
>From 1a5b71d5adb0a00c6f5dee668636ab3293e75c71 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 > >--- > C4/Auth.pm | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 9fb674ea597..1360ea7a187 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.20.1
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