Skip to content
Snippets Groups Projects
Verified Commit 7632e6be authored by Jiří Prokop's avatar Jiří Prokop
Browse files

refactor: 2fa success log moved here

parent 5537b32b
No related branches found
No related tags found
No related merge requests found
Pipeline #321283 failed
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
......@@ -150,7 +150,9 @@ class Utils
$session->registerLogoutHandler($authority, self::class, 'handleLogout');
$session->setData('privacyidea:privacyidea', '2FA-success', true, Session::DATA_TIMEOUT_SESSION_END);
Logger::info('privacyIDEA: saved 2FA-success');
Logger::debug('privacyIDEA: SSO data written and logout handler registered.');
}
/**
......@@ -331,7 +333,7 @@ class Utils
public static function getClientIP()
{
$result = ($_SERVER['HTTP_X_FORWARDED_FOR'] ?? null) ?: ($_SERVER['REMOTE_ADDR'] ?? null)
?: ($_SERVER['HTTP_CLIENT_IP'] ?? null);
?: ($_SERVER['HTTP_CLIENT_IP'] ?? null);
Logger::debug('privacyIDEA: client ip: ' . $result);
return $result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment