* We need LOGIN_REDIRECT instead of HEADER_REDIRECT to load the
...
...
@@ -161,6 +154,8 @@ function process_login_request(app $app, &$error, $conf, $module)
header('Location: otp.php');
die();
}else{
$app->plugin->raiseEvent('login',$username);
$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());