X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fsco%2Fsco-main.pl;h=a1a3ce6f511fa255a2bec49f80e84df46b5bbeda;hb=181f3b36eec7ab46d54d0e73073dbdc919e4ce7a;hp=b36ff6434617d69b820ccab49caababa56d3c142;hpb=9a54047b6d10eb4b553ad29c6130a1e276252fe5;p=koha_fer diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index b36ff64346..a1a3ce6f51 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -2,6 +2,23 @@ # # This code has been modified by Trendsetters (originally from opac-user.pl) # This code has been modified by rch +# Parts Copyright 2010-2011, ByWater Solutions (those related to username/password auth) +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + # We're going to authenticate a self-check user. we'll add a flag to borrowers 'selfcheck' # # We're in a controlled environment; we trust the user. @@ -92,7 +109,8 @@ my $issuer = GetMemberDetails($issuerid); my $item = GetItem(undef,$barcode); if (C4::Context->preference('SelfCheckoutByLogin') && !$patronid) { my $dbh = C4::Context->dbh; - my $resval, $patronid = checkpw($dbh, $patronlogin, $patronpw); + my $resval; + ($resval, $patronid) = checkpw($dbh, $patronlogin, $patronpw); } my $borrower = GetMemberDetails(undef,$patronid);