mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed type-casting for AuthComponent::login()
This commit is contained in:
parent
87a58eeaea
commit
faaba42aa7
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,7 @@ class AuthComponent extends Component {
|
|||
$this->Session->renew();
|
||||
$this->Session->write(self::$sessionKey, $user);
|
||||
}
|
||||
return $this->user();
|
||||
return (bool)$this->user();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue