diff options
| author | 2016-12-24 16:33:28 +0100 | |
|---|---|---|
| committer | 2016-12-24 16:33:28 +0100 | |
| commit | 332a4dec8690b658bcb878a20056aea33c673f69 (patch) | |
| tree | 0c342ddb093ebfd1e2d75a579aa8d04dd4f45eaa /app/Controllers/authController.php | |
| parent | 7ae60ff0cc577997b9b754966a0f52649077b744 (diff) | |
Option for cookie duration
https://github.com/FreshRSS/FreshRSS/issues/1384
Diffstat (limited to 'app/Controllers/authController.php')
| -rw-r--r-- | app/Controllers/authController.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index 9decba431..1398e4e49 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -113,6 +113,10 @@ class FreshRSS_auth_Controller extends Minz_ActionController { $file_mtime = @filemtime(PUBLIC_PATH . '/scripts/bcrypt.min.js'); Minz_View::appendScript(Minz_Url::display('/scripts/bcrypt.min.js?' . $file_mtime)); + $conf = Minz_Configuration::get('system'); + $limits = $conf->limits; + $this->view->cookie_days = round($limits['cookie_duration'] / 86400, 1); + if (Minz_Request::isPost()) { $nonce = Minz_Session::param('nonce'); $username = Minz_Request::param('username', ''); |
