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@gmail.com>
Signed-off-by: Jeff Godin <jgodin@tadl.org>
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 {