Skip to content
Permalink
Browse files

AuthComponent::login() returning deprecated method

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 87a58eeaeafa5b1bb6753a8b4ef713fef78f96c9
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->loggedIn();
return $this->user();
}
/**

0 comments on commit 87a58ee

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