diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-11-27 13:59:46 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-11-27 14:03:28 +0100 |
commit | 9b808c40147ebb2ff58908e17039b6caf076ec7e (patch) | |
tree | 3c5870d3426ebaddcf3f5b5b3629f7948842f92e /lib | |
parent | 7e6f829d546a95acc3421c5fd9dd7574fa291994 (diff) | |
download | nextcloud-server-9b808c40147ebb2ff58908e17039b6caf076ec7e.tar.gz nextcloud-server-9b808c40147ebb2ff58908e17039b6caf076ec7e.zip |
do not remember session tokens by default
We have to respect the value of the remember-me checkbox. Due to an error
in the source code the default value for the session token was to remember
it.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index a45b1dcd10f..c3561cf64e3 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -558,7 +558,7 @@ class Session implements IUserSession, Emitter { try { $sessionId = $this->session->getId(); $pwd = $this->getPassword($password); - $this->tokenProvider->generateToken($sessionId, $uid, $loginName, $pwd, $name, IToken::TEMPORARY_TOKEN, IToken::REMEMBER); + $this->tokenProvider->generateToken($sessionId, $uid, $loginName, $pwd, $name, IToken::TEMPORARY_TOKEN, $remember); return true; } catch (SessionNotAvailableException $ex) { // This can happen with OCC, where a memory session is used |