Skip to content
Permalink
Browse files

Fixed type-casting for AuthComponent::login()

  • Loading branch information...
sutt0n committed Sep 14, 2014
1 parent 87a58ee commit faaba42aa7aba50c110e72a6c20a17fc734bd0e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Component/AuthComponent.php
@@ -604,7 +604,7 @@ public function login($user = null) {
$this->Session->renew();
$this->Session->write(self::$sessionKey, $user);
}
return $this->user();
return (bool)$this->user();
}
/**

0 comments on commit faaba42

Please sign in to comment.
You can’t perform that action at this time.