Fixed type-casting for AuthComponent::login()

This commit is contained in:
Joseph Sutton 2014-09-14 11:15:08 -05:00
parent 87a58eeaea
commit faaba42aa7

View file

@ -604,7 +604,7 @@ class AuthComponent extends Component {
$this->Session->renew();
$this->Session->write(self::$sessionKey, $user);
}
return $this->user();
return (bool)$this->user();
}
/**