[open-ils-commits] [GIT] Evergreen ILS branch master updated. edaee081c0d7eaff3bc907f24129358d9e830439

Evergreen Git git at git.evergreen-ils.org
Wed Jun 15 11:42:09 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  edaee081c0d7eaff3bc907f24129358d9e830439 (commit)
      from  1463f3597487048127cee5b19ba79bb3bec5a878 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit edaee081c0d7eaff3bc907f24129358d9e830439
Author: Bill Erickson <berickxx at gmail.com>
Date:   Tue Jun 14 16:16:08 2016 -0400

    LP#1592565 Log successful authtoken and workstation
    
    Recover a previously existing activity log entry that logged the
    username, authtoken, and workstation (when available) for successful
    logins.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Jeff Godin <jgodin at tadl.org>

diff --git a/Open-ILS/src/c-apps/oils_auth.c b/Open-ILS/src/c-apps/oils_auth.c
index fd9b5e7..068e0f1 100644
--- a/Open-ILS/src/c-apps/oils_auth.c
+++ b/Open-ILS/src/c-apps/oils_auth.c
@@ -516,6 +516,18 @@ static oilsEvent* oilsAuthHandleLoginOK( jsonObject* userObj, const char* uname,
             jsonObjectGetKey(authEvt, "payload")   // cloned within Event
         );
 
+        osrfLogActivity(OSRF_LOG_MARK,
+            "successful login: username=%s, authtoken=%s, workstation=%s",
+            uname,
+            jsonObjectGetString(
+                jsonObjectGetKeyConst(
+                    jsonObjectGetKeyConst(authEvt, "payload"),
+                    "authtoken"
+                )
+            ),
+            workstation ? workstation : ""
+        );
+
         jsonObjectFree(authEvt);
 
     } else {

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/c-apps/oils_auth.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list