mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-25 11:06:22 -05:00
Fix undefined conf (#2163)
Small fix for https://github.com/FreshRSS/FreshRSS/pull/2137
This commit is contained in:
committed by
GitHub
parent
8bbf567fde
commit
2f70da06e6
@@ -233,6 +233,7 @@ class FreshRSS_FormAuth {
|
||||
|
||||
$token_file = DATA_PATH . '/tokens/' . $token . '.txt';
|
||||
$mtime = @filemtime($token_file);
|
||||
$conf = Minz_Configuration::get('system');
|
||||
$limits = $conf->limits;
|
||||
$cookie_duration = empty($limits['cookie_duration']) ? 2592000 : $limits['cookie_duration'];
|
||||
if ($mtime + $cookie_duration < time()) {
|
||||
|
||||
Reference in New Issue
Block a user