mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-12 03:16:54 +01:00
* [ADD] New preset option for session timeout based on client IP address and network. Related #912
* [MOD] Improved IP addresses handling * [MOD] Code refactoring * [FIX] Minor bugfixes
This commit is contained in:
@@ -316,6 +316,8 @@ final class Init extends ModuleBase
|
||||
if ($this->isIndex || $timeout === null) {
|
||||
$userTimeout = $this->getSessionTimeoutForUser($timeout) ?: $this->configData->getSessionTimeout();
|
||||
|
||||
logger('Session timeout: ' . $userTimeout);
|
||||
|
||||
return $this->context->setSessionTimeout($userTimeout);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user