diff options
Diffstat (limited to 'inc/poche/Poche.class.php')
-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); |