From 3836ad94e6ff87d13d53226b202872a097c0cb48 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sat, 23 Aug 2014 10:59:28 -0400 Subject: [PATCH] A few fixes for NCIP::ILS::Evergreen. We need to get the username, password, workstation, etc. from the credentials member of the config hash. Also fix a typo on line 459 by deleting an extraneous -. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 727a105..f97156f 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -337,7 +337,7 @@ sub login { my $seed = $U->simplereq( 'open-ils.auth', 'open-ils.auth.authenticate.init', - $self->{config}->{username} + $self->{config}->{credentials}->{username} ); # Actually login. @@ -346,12 +346,12 @@ sub login { 'open-ils.auth', 'open-ils.auth.authenticate.complete', { - username => $self->{config}->{username}, + username => $self->{config}->{credentials}->{username}, password => md5_hex( - $seed . md5_hex($self->{config}->{password}) + $seed . md5_hex($self->{config}->{credentials}->{password}) ), type => 'staff', - workstation => $self->{config}->{workstation} + workstation => $self->{config}->{credentials}->{workstation} } ); if ($response) { @@ -456,7 +456,7 @@ sub _init { my $result = $e->retrieve_config_bib_source($data->{cbs}); $cbs = $result if ($result); } else { - my $result = $e->search_config_bib_source({source => $data-}); + my $result = $e->search_config_bib_source({source => $data}); if ($result && @$result) { $cbs = $result->[0]; # Use the first one. } -- 2.43.2