From fadc9c67be5ca96a44279a2216f366d88c121e90 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 23 Aug 2017 11:22:51 -0400 Subject: [PATCH] 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 --- Open-ILS/examples/remoteauth.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.11.0