Fix #2427 by converting $remember to integer
Signed-off-by: justin-sleep <justin@quarterfull.com>
This commit is contained in:
parent
d7dd399bbd
commit
9ee9d21cfd
|
@ -558,7 +558,7 @@ class Session implements IUserSession, Emitter {
|
||||||
try {
|
try {
|
||||||
$sessionId = $this->session->getId();
|
$sessionId = $this->session->getId();
|
||||||
$pwd = $this->getPassword($password);
|
$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;
|
return true;
|
||||||
} catch (SessionNotAvailableException $ex) {
|
} catch (SessionNotAvailableException $ex) {
|
||||||
// This can happen with OCC, where a memory session is used
|
// This can happen with OCC, where a memory session is used
|
||||||
|
|
Loading…
Reference in New Issue