Skip to content

Commit

Permalink
Fixed type-casting for AuthComponent::login()
Browse files Browse the repository at this point in the history
  • Loading branch information
sutt0n committed Sep 14, 2014
1 parent 87a58ee commit faaba42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit faaba42

Please sign in to comment.