which gave me true, false.
Umm, that means that user is authenticated successfully but not.
I tried to investigate and inside Gatekeeper::authenticate() found this line:
if (self::$throttleStatus === true && $result === true) {
Which, if I understood correctly, means that "remember me" works only when throttling is enabled... eh...
Looks like if I remove self::$throttleStatus === true remembering does work - but recalling still doesn't.
Digging further inside RememberMe::setup() I found this:
if ($userToken->id !== null || $this->isExpired($userToken)) {
return false;
}
$userToken->id !== null condition triggers and the false is returned.
I don't understand this logic and cannot suggest anything more. I don't think it works as intended, though... are these bugs?
I tried to run this code:
which gave me
true
,false
. Umm, that means that user is authenticated successfully but not. I tried to investigate and inside Gatekeeper::authenticate() found this line:Which, if I understood correctly, means that "remember me" works only when throttling is enabled... eh... Looks like if I remove
self::$throttleStatus === true
remembering does work - but recalling still doesn't.Digging further inside RememberMe::setup() I found this:
$userToken->id !== null
condition triggers and thefalse
is returned. I don't understand this logic and cannot suggest anything more. I don't think it works as intended, though... are these bugs?