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

fix: save SSO data until end of session

previously session.datastore.timeout applied as the default, which caused too frequent 2FA
parent eaa6e09a
Branches
Tags
No related merge requests found
......@@ -146,7 +146,7 @@ class Utils
Logger::debug('privacyIDEA: Registering logout handler for authority ' . $authority);
$session->registerLogoutHandler($authority, self::class, 'handleLogout');
$session->setData('privacyidea:privacyidea', '2FA-success', true);
$session->setData('privacyidea:privacyidea', '2FA-success', true, Session::DATA_TIMEOUT_SESSION_END);
Logger::debug('privacyIDEA: SSO data written and logout handler registered.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment