Skip to content

Commit 9b896d4

Browse files
committed
user login log added
1 parent 7d23b76 commit 9b896d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/init.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@
107107
$_SESSION["user_exists"] = $USER->exists();
108108
$_SESSION["is_pi"] = $USER->isPI();
109109

110+
$SQL->addLog(
111+
$OPERATOR->getUID(),
112+
$_SERVER['REMOTE_ADDR'],
113+
"user_login",
114+
$OPERATOR->getUID()
115+
);
116+
110117
if (!$_SESSION["user_exists"]) {
111118
// populate cache
112119
$REDIS->setCache($SSO["user"], "org", $SSO["org"]);

0 commit comments

Comments
 (0)