diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2017-08-27 16:36:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 16:36:53 +0200 |
commit | e4ed3a46b7029eeed757daf33596eb5d345c32b5 (patch) | |
tree | efce8e24dbe264c2dac554e6838f7bbf35e80e4b /index.php | |
parent | fc27141cf6eb04d3d8714385cb6961a8063fe61b (diff) | |
parent | 2e07e77573a379f9af006b2c523117eef9fdf9b2 (diff) | |
download | Shaarli-e4ed3a46b7029eeed757daf33596eb5d345c32b5.tar.gz Shaarli-e4ed3a46b7029eeed757daf33596eb5d345c32b5.tar.zst Shaarli-e4ed3a46b7029eeed757daf33596eb5d345c32b5.zip |
Merge pull request #944 from thewilli/configure-rememberme
new setting: default value for 'remember me' checkbox
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -737,6 +737,8 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) | |||
737 | $PAGE->assign('username', escape($_GET['username'])); | 737 | $PAGE->assign('username', escape($_GET['username'])); |
738 | } | 738 | } |
739 | $PAGE->assign('returnurl',(isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']):'')); | 739 | $PAGE->assign('returnurl',(isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']):'')); |
740 | // add default state of the 'remember me' checkbox | ||
741 | $PAGE->assign('remember_user_default', $conf->get('privacy.remember_user_default')); | ||
740 | $PAGE->renderPage('loginform'); | 742 | $PAGE->renderPage('loginform'); |
741 | exit; | 743 | exit; |
742 | } | 744 | } |