Skip to content

Commit

Permalink
AuthComponent::login() returning deprecated method
Browse files Browse the repository at this point in the history
Changed $this->loggedIn() to $this->user(), as per the PHPDOC for loggedIn() at line 817
  • Loading branch information
sutt0n committed Sep 14, 2014
1 parent 9e4446f commit 87a58ee
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->loggedIn();
return $this->user();
}

/**
Expand Down

0 comments on commit 87a58ee

Please sign in to comment.