[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. 3f97d1e1c2ad331c0a37f03a4a3eda784144c023
Evergreen Git
git at git.evergreen-ils.org
Wed Jun 15 11:42:22 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, rel_2_10 has been updated
via 3f97d1e1c2ad331c0a37f03a4a3eda784144c023 (commit)
from ab260df4412d0304e9a8ddf87dc0661a24cb2ca4 (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 3f97d1e1c2ad331c0a37f03a4a3eda784144c023
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