Skip to content
Snippets Groups Projects
Commit f80f0c27 authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

chore: merge branch 'after_mfa_fix_log_add' into 'main'

refactor: 2fa success log moved here

See merge request perun-proxy-aai/simplesamlphp/simplesamlphp-module-privacyidea!24
parents 5537b32b e5503018
Branches
Tags
1 merge request!24refactor: 2fa success log moved here
Pipeline #321378 passed with warnings
......@@ -150,6 +150,7 @@ 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 +332,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