diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index 89cf8bc25..3a24f32bc 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -604,7 +604,7 @@ class AuthComponent extends Component { $this->Session->renew(); $this->Session->write(self::$sessionKey, $user); } - return $this->user(); + return (bool)$this->user(); } /**