[open-ils-commits] r7813 - trunk/Open-ILS/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Sep 20 00:22:00 EDT 2007


Author: dbs
Date: 2007-09-20 00:13:05 -0400 (Thu, 20 Sep 2007)
New Revision: 7813

Modified:
   trunk/Open-ILS/src/c-apps/oils_auth.c
Log:
Fix insignificant typos, add more INTERNAL debugging


Modified: trunk/Open-ILS/src/c-apps/oils_auth.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_auth.c	2007-09-20 01:20:29 UTC (rev 7812)
+++ trunk/Open-ILS/src/c-apps/oils_auth.c	2007-09-20 04:13:05 UTC (rev 7813)
@@ -43,7 +43,7 @@
 		"oilsAuthComplete", 
 		"Completes the authentication process.  Returns an object like so: "
 		"{authtoken : <token>, authtime:<time>}, where authtoken is the login "
-		"tokena and authtime is the number of seconds the session will be active"
+		"token and authtime is the number of seconds the session will be active"
 		"PARAMS(username, md5sum( seed + password ), type, org_id ) "
 		"type can be one of 'opac','staff', or 'temp' and it defaults to 'staff' "
 		"org_id is the location at which the login should be considered "
@@ -71,7 +71,7 @@
 		"oilsAuthResetTimeout",
 		"Resets the login timeout for the given session "
 		"Returns an ILS Event with payload = session_timeout of session "
-		"is found, otherwise returns the NO_SESSION event"
+		"if found, otherwise returns the NO_SESSION event"
 		"PARAMS( authToken )", 1, 0 );
 
 	return 0;
@@ -177,6 +177,7 @@
 			"open-ils.auth.authenticate.init must be called first");
 	}
 
+	osrfLogInternal(OSRF_LOG_MARK, "oilsAuth retrieved real password: [%s]", realPassword);
 	osrfLogDebug(OSRF_LOG_MARK,  "oilsAuth retrieved seed from cache: %s", seed );
 	char* maskedPw = md5sum( "%s%s", seed, realPassword );
 	if(!maskedPw) return -1;
@@ -366,7 +367,7 @@
 	if( !( (uname || barcode) && password) ) {
 		free(barcode);
 		return osrfAppRequestRespondException( ctx->session, ctx->request, 
-			"username/barocode and password required for method: %s", ctx->method->name );
+			"username/barcode and password required for method: %s", ctx->method->name );
 	}
 
 	oilsEvent* response = NULL;



More information about the open-ils-commits mailing list