summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-28 14:05:04 +0100
committerGitHub <noreply@github.com>2016-11-28 14:05:04 +0100
commit3950ce9223927c66eb9f3f9f82475a19af617ed4 (patch)
treef34752c08b8ace60b2cc9ef9d10f4f5d8b8d1c81 /lib
parent0cc771ce19642126fb764e8dcbd21100e770f4b0 (diff)
parent6543182d13778eec9471e337727c8c432e565c4b (diff)
downloadnextcloud-server-3950ce9223927c66eb9f3f9f82475a19af617ed4.tar.gz
nextcloud-server-3950ce9223927c66eb9f3f9f82475a19af617ed4.zip
Merge pull request #2351 from nextcloud/remember-session-default
do not remember session tokens by default
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/Session.php2
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