Skip to content

Commit ea51b5e

Browse files
committed
Re-add lost logging for loginAs scenario
1 parent a316c43 commit ea51b5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/web/login/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ function process_login_request(app $app, &$error, $conf, $module)
134134

135135
if ($loginAs) {
136136
echo 'LOGIN_REDIRECT:'.$_SESSION['s']['module']['startpage'];
137+
$app->plugin->raiseEvent('login', $username);
138+
$app->auth_log('Successful login for user \''. $username .'\' ' . $msg . ' from '. $_SERVER['REMOTE_ADDR'] .' at '. date('Y-m-d H:i:s') . ' with session ID ' .session_id());
137139
exit;
138140
} else {
139141

0 commit comments

Comments
 (0)