mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-05-11 01:53:23 +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->renew();
|
||||||
$this->Session->write(self::$sessionKey, $user);
|
$this->Session->write(self::$sessionKey, $user);
|
||||||
}
|
}
|
||||||
return $this->user();
|
return (bool)$this->user();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue