diff options
author | Dmitry Sandalov <dmitry@sandalov.org> | 2013-12-21 23:39:45 +0400 |
---|---|---|
committer | Dmitry Sandalov <dmitry@sandalov.org> | 2013-12-21 23:39:45 +0400 |
commit | a0aa150418b628b32b18c70436d6be495129ee38 (patch) | |
tree | dfde1480ced98e78ed2d3e007e7bbd2f87be5a8f /inc/poche | |
parent | 5c8d438c08f12e20e237e0c9a9ea9cb63b58fa1d (diff) | |
download | wallabag-a0aa150418b628b32b18c70436d6be495129ee38.tar.gz wallabag-a0aa150418b628b32b18c70436d6be495129ee38.tar.zst wallabag-a0aa150418b628b32b18c70436d6be495129ee38.zip |
fix for long lasting session
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/Poche.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index d415dd03..adec9b28 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -678,7 +678,8 @@ class Poche | |||
678 | $user = $this->store->login($login, Tools::encodeString($password . $login)); | 678 | $user = $this->store->login($login, Tools::encodeString($password . $login)); |
679 | if ($user != array()) { | 679 | if ($user != array()) { |
680 | # Save login into Session | 680 | # Save login into Session |
681 | Session::login($user['username'], $user['password'], $login, Tools::encodeString($password . $login), array('poche_user' => new User($user))); | 681 | $longlastingsession = isset($_POST['longlastingsession']); |
682 | Session::login($user['username'], $user['password'], $login, Tools::encodeString($password . $login), $longlastingsession, array('poche_user' => new User($user))); | ||
682 | $this->messages->add('s', _('welcome to your poche')); | 683 | $this->messages->add('s', _('welcome to your poche')); |
683 | Tools::logm('login successful'); | 684 | Tools::logm('login successful'); |
684 | Tools::redirect($referer); | 685 | Tools::redirect($referer); |