added workstation arg to login method
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Oct 2008 16:31:10 +0000 (16:31 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Oct 2008 16:31:10 +0000 (16:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@10971 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/User.js

index 0b09011..ae0d1e1 100644 (file)
@@ -14,6 +14,7 @@
  * ---------------------------------------------------------------------------
  */
 
+
 if(!dojo._hasResource["openils.User"]) {
 
     dojo._hasResource["openils.User"] = true;
@@ -31,6 +32,7 @@ if(!dojo._hasResource["openils.User"]) {
         location : null,
         authtoken : null,
         authtime : null,
+        workstation : null,
     
         constructor : function ( kwargs ) {
             kwargs = kwargs || {};
@@ -112,6 +114,7 @@ if(!dojo._hasResource["openils.User"]) {
                     password : hex_md5(seed + hex_md5(args.passwd)), 
                     type : args.type,
                     org : args.location,
+                    workstation : args.workstation
                 };
     
                 var authReq = OpenSRF.CachedClientSession('open-ils.auth').request('open-ils.auth.authenticate.complete', loginInfo);
@@ -151,6 +154,7 @@ if(!dojo._hasResource["openils.User"]) {
                 password : hex_md5(seed + hex_md5(args.passwd)), 
                 type : args.type,
                 org : args.location,
+                workstation : args.workstation,
             };
 
             var data = fieldmapper.standardRequest(
@@ -255,7 +259,7 @@ if(!dojo._hasResource["openils.User"]) {
                        hookupStore(_u.permOrgStoreCache[perm]);
                else
                 _u.getPermOrgList(perm, buildTreePicker);
-        }
+        },
     });
 
        openils.User.user = null;