try using the full path in the login redirect, i.e.
$this->redirect('/users/login');
you also should add the 'true' tag, if you are using CakePHP1.2, to
automatically call the exit() function after the redirect.
i.e.
$this->redirect('/users/login', true);
Hope this helps!
On Feb 7, 2008 5:43 PM, polomasta <[EMAIL PROTECTED]> wrote:
>
> i've been trying to implement that scattered examples of user
> registration/authentication systems and without much success. I know
> it's due to my lack of sKiLLz or whatever, but I could use some help.
>
> The code i have creates my user and puts it into the database just
> fine..but after that, nothing happens... no flash, no redirect. I
> can't figure it out. here is my register code in the users_controller:
>
> function register() {
> if (!empty($this->data)) {
> if ($this->data['User']['password'] == $this->Auth-
> >password($this->data['User']['password_confirm'])) {
> $this->User->create();
> $this->User->save($this->data);
> $this->redirect('login');
> }
> }
> }
>
> what am I doing wrong?
> >
>
--
In the name of Life, Liberty, and the pursuit of my sanity.
Siebren Bakker(Aevum Decessus)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s+: a19 C++++ UL++ P L++
!E W++ N(-) o? K? w(+) O? M-- V?
PS+ PE Y- PGP- t+ 5? X- R tv--
b++ Di D+ G+ e h! r y-
------END GEEK CODE BLOCK------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---