Remove use of request info to identify user in AuthComponent::login().

Your login action would now be similar to:
```php
...
if ($this->request->is('post')) {
    $user = $this->Auth->identify();
    if ($user) {
        $this->Auth->login($user);
        // redirect somewhere
    }
    // set error flash
}
...
```
`store()` or `setUser()` perhaps?


2014-06-18 14:17 GMT+02:00 ADmad <notifications@github.com>:

> In src/Controller/Component/AuthComponent.php:
>
> >   * @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#identifying-users-and-logging-them-in
> >   */
> > -	public function login($user = null) {
> > +	public function login(array $user) {
>
>  It doesn't really have to be an array, does it?
>
> The way AuthComponent::user() works it has to be an array.
>
> I think this will still confuse people, as most expect that by passing
> data it will run the authentication routine instead of just storing the
> data.
>
> Agreed. dereuromark suggested update() but it doesn't feel right. More
> suggestions for alternate name are welcome.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cakephp/cakephp/pull/3735/files#r13911650>.
>