Rename user to uid in auth response
authorJeff Godin <jgodin@tadl.org>
Tue, 28 May 2013 20:29:15 +0000 (16:29 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 28 May 2013 20:29:15 +0000 (16:29 -0400)
Rename "user" to "uid" in auth response, attempt to avoid confusion
with input variable "user".

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/perlmods/lib/OpenILS/LibraryREST.pm

index 9d1d10e..acaba8a 100644 (file)
@@ -63,7 +63,7 @@ sub get_auth {
     );
 
     return {
-        user => $session->id(),
+        uid => $session->id(),
         token => $response->{payload}->{authtoken},
     };