aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Patrick Crandol <patrick@crandol.com> 2018-11-18 13:34:41 -0500
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-11-18 19:34:41 +0100
commitebb9ee0873333c111546412ad08bf5207529f24a (patch)
tree67387066bb14df60973d43a811c51055b09ad7c9 /app/Controllers/configureController.php
parente20c7ef1b020df492923ca9a445fb8fa172a11dd (diff)
Edit cookie_duration from GUI (#2137)
* Use cookie_duration correctly * WIP allow cookie_duration to be modified from GUI * Allow cookie_duration to actually be updated * Update view to properly display cookie_duration * Add new strings in Translation Files * Fix typo * Fix trailing whitespace * I18n: French translation * I18n fr: Forgot todo
Diffstat (limited to 'app/Controllers/configureController.php')
-rwxr-xr-xapp/Controllers/configureController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 20bcd2e76..9c3900f39 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -308,6 +308,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
* - user limit (default: 1)
* - user category limit (default: 16384)
* - user feed limit (default: 16384)
+ * - user login duration for form auth (default: 2592000)
*/
public function systemAction() {
if (!FreshRSS_Auth::hasAccess('admin')) {
@@ -318,6 +319,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$limits['max_registrations'] = Minz_Request::param('max-registrations', 1);
$limits['max_feeds'] = Minz_Request::param('max-feeds', 16384);
$limits['max_categories'] = Minz_Request::param('max-categories', 16384);
+ $limits['cookie_duration'] = Minz_Request::param('cookie-duration', 2592000);
FreshRSS_Context::$system_conf->limits = $limits;
FreshRSS_Context::$system_conf->title = Minz_Request::param('instance-name', 'FreshRSS');
FreshRSS_Context::$system_conf->auto_update_url = Minz_Request::param('auto-update-url', false);