From: erickson Date: Thu, 18 Mar 2010 00:04:01 +0000 (+0000) Subject: allow oils_logout to take a specific argument, optionally X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8965c76d859de32eff7e41b0e6a07faedd4e407d;p=evergreen%2Ftadl.git allow oils_logout to take a specific argument, optionally git-svn-id: svn://svn.open-ils.org/ILS/trunk@15890 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/support-scripts/oils_header.pl b/Open-ILS/src/support-scripts/oils_header.pl index 56d80c3710..6dc6be6f65 100755 --- a/Open-ILS/src/support-scripts/oils_header.pl +++ b/Open-ILS/src/support-scripts/oils_header.pl @@ -169,7 +169,7 @@ sub oils_login { oils_event_die($response); - $authtime = $response->{payload}->{authtime}; + $authtime = $response->{payload}->{authtime}; $authtoken = $response->{payload}->{authtoken}; return $authtoken; } @@ -181,7 +181,7 @@ sub oils_login { sub oils_logout { $apputils->simplereq( 'open-ils.auth', - 'open-ils.auth.session.delete', $authtoken ); + 'open-ils.auth.session.delete', (@_ ? shift : $authtoken) ); } #---------------------------------------------------------------- @@ -198,7 +198,7 @@ sub oils_fetch_session { #---------------------------------------------------------------- # var $response = simplereq( $service, $method, @params ); #---------------------------------------------------------------- -sub simplereq { return $apputils->simplereq(@_); } +sub simplereq { return $apputils->simplereq(@_); } sub osrf_request { return $apputils->simplereq(@_); } 1;