Fix #2427 by converting $remember to integer

Signed-off-by: justin-sleep <justin@quarterfull.com>
This commit is contained in:
justin-sleep 2016-11-30 15:26:08 -06:00
parent d7dd399bbd
commit 9ee9d21cfd
1 changed files with 1 additions and 1 deletions

View File

@ -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, $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