Hello Fran,

I got it now working. Thanks for the big help!

Actually, $this->Auth->login($this->data); // login user
is already correct. I just missed to call the line to
redirect the user to the designated page.

Now it looks like this:

if ($this->User->save($this->data)) {
         $login = $this->Auth->login($this->data);
         if($login)
        {
                $this->redirect($this->Auth->redirect());
        }
}

Thanks,
Mario

On Sep 24, 4:03 pm, Fran Iglesias <[EMAIL PROTECTED]> wrote:
> El 24/09/2008, a las 9:31, mario escribió:
>
> > So in this case,
> > $this->Auth->login($this->data); // login user
>
> I think you have the plain version of the password in password2 field.  
> You could do some like:
>
> if ($this->User->save($this->data)) {
>         $this->data['User']['password'] = $this->data['User']['password2'];
>         $this->Auth->login($this->data); // login user
>
> }
>
> --
> Fran Iglesias
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to