From: erickson Date: Fri, 3 Mar 2006 21:00:46 +0000 (+0000) Subject: Open-ILS/src/c-apps/oils_auth.c X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1d081214f6b96a6f848f14626e034a05d4f03e78;p=working%2FOpenSRF.git Open-ILS/src/c-apps/oils_auth.c git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@657 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/srfsh/srfsh.c b/src/srfsh/srfsh.c index c6d124c..cbeb737 100644 --- a/src/srfsh/srfsh.c +++ b/src/srfsh/srfsh.c @@ -244,8 +244,9 @@ int handle_login( char* words[]) { char* password = words[2]; char* type = words[3]; char* orgloc = words[4]; - int orgloci = 0; - if(orgloc) orgloci = atoi(orgloc); + char* wsid = words[5]; + int orgloci = (orgloc) ? atoi(orgloc) : 0; + int wsidi = (wsid) ? atoi(wsid) : 0; if(!type) type = "opac"; char buf[256]; @@ -274,7 +275,7 @@ int handle_login( char* words[]) { char* mess_buf = md5sum(both_buf); sprintf( buf2, "request open-ils.auth open-ils.auth.authenticate.complete " - "\"%s\", \"%s\", \"%s\", %d", username, mess_buf, type, orgloci ); + "\"%s\", \"%s\", \"%s\", %d, %d", username, mess_buf, type, orgloci, wsidi ); free(pass_buf); free(mess_buf);