aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Auth.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-12-04 21:26:10 +0100
committerGravatar GitHub <noreply@github.com> 2018-12-04 21:26:10 +0100
commit2f70da06e6c19bef383e5011e6300eef7a8257cb (patch)
tree72d843e26ae088826a3ed096838c810a9f25cb8f /app/Models/Auth.php
parent8bbf567fde704619ce98598593cff2a486f231ba (diff)
Fix undefined conf (#2163)
Small fix for https://github.com/FreshRSS/FreshRSS/pull/2137
Diffstat (limited to 'app/Models/Auth.php')
-rw-r--r--app/Models/Auth.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Models/Auth.php b/app/Models/Auth.php
index d1e26b8e8..9c3e31952 100644
--- a/app/Models/Auth.php
+++ b/app/Models/Auth.php
@@ -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()) {