AuthComponent::login() returning deprecated method

Changed $this->loggedIn() to $this->user(), as per the PHPDOC for loggedIn() at line 817
This changes the return type. You need to typecast to boolean.