diff options
author | Willi Eggeling <mail@wje-online.de> | 2017-08-26 09:27:10 +0200 |
---|---|---|
committer | Willi Eggeling <mail@wje-online.de> | 2017-08-27 16:03:37 +0200 |
commit | 2e07e77573a379f9af006b2c523117eef9fdf9b2 (patch) | |
tree | bbcd002b7d357f92a832b4bd22d5ed6251732037 /index.php | |
parent | de901736a663934c1b67f09f1d586da665f0f036 (diff) | |
download | Shaarli-2e07e77573a379f9af006b2c523117eef9fdf9b2.tar.gz Shaarli-2e07e77573a379f9af006b2c523117eef9fdf9b2.tar.zst Shaarli-2e07e77573a379f9af006b2c523117eef9fdf9b2.zip |
new setting: default value for 'remember me' checkbox
- the default state for the login page's 'remember me' checkbox can now be configured
- adapted the default and vintage theme to consider the new setting
- added documentation for the new setting
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -745,6 +745,8 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) | |||
745 | $PAGE->assign('username', escape($_GET['username'])); | 745 | $PAGE->assign('username', escape($_GET['username'])); |
746 | } | 746 | } |
747 | $PAGE->assign('returnurl',(isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']):'')); | 747 | $PAGE->assign('returnurl',(isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']):'')); |
748 | // add default state of the 'remember me' checkbox | ||
749 | $PAGE->assign('remember_user_default', $conf->get('privacy.remember_user_default')); | ||
748 | $PAGE->renderPage('loginform'); | 750 | $PAGE->renderPage('loginform'); |
749 | exit; | 751 | exit; |
750 | } | 752 | } |