From 8965c76d859de32eff7e41b0e6a07faedd4e407d Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 18 Mar 2010 00:04:01 +0000 Subject: [PATCH] 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 --- Open-ILS/src/support-scripts/oils_header.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/support-scripts/oils_header.pl b/Open-ILS/src/support-scripts/oils_header.pl index 56d80c371..6dc6be6f6 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; -- 2.11.0