From: Bill Erickson Date: Wed, 23 Aug 2017 15:22:51 +0000 (-0400) Subject: JBAS-1792 Remote auth logging handles barcodes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fadc9c67be5ca96a44279a2216f366d88c121e90;p=working%2FEvergreen.git JBAS-1792 Remote auth logging handles barcodes Fix an issue in remoteauth.cgi logging where it failed to log barcodes when they were passed via the generic "user" parameter. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/examples/remoteauth.cgi b/Open-ILS/examples/remoteauth.cgi index 0aea483ab7..3ee752f2b7 100755 --- a/Open-ILS/examples/remoteauth.cgi +++ b/Open-ILS/examples/remoteauth.cgi @@ -93,7 +93,7 @@ if (!($u || $usrname || $barcode) || !$p) { $user = $e->search_actor_user({usrname => $u})->[0]; } - my $logtag = $barcode ? "barcode=$barcode" : "username=$usrname"; + my $logtag = $nametype eq 'barcode' ? "barcode=$u" : "username=$u"; if (!$user) { $logger->warn("remoteauth: no such user $logtag");