well i tired it in my login function dosent seem to work it keeps
login me in my email is not active

if ($this->Auth->user('email_active') == '0') {
                      $this->Session->destroy();
                      $this->redirect(array('controller' => 'users',
'action' => 'not_active'));
                  }

On Nov 2, 7:04 pm, Robert P <[email protected]> wrote:
> He doesn't need to. Auth redirects only come into play on login,
> logout and when the user isn't authorised. Presumable Dave has allowed
> unauthorised access to
> RegistrationsController::pending_email_confirmation()
>
> On Nov 3, 6:47 am, Simon <[email protected]> wrote:
>
>
>
> > did you set auth redirect to false ??
>
> > On Nov 2, 2:37 pm, "Dave" <[email protected]> wrote:
>
> > > For #2 in my login function I have
>
> > > if ($this->Auth->user('confirmed') == '0') {
> > >                       $this->Session->destroy();
> > >                       $this->redirect(array('controller' => 
> > > 'registrations',
> > > 'action' => 'pending_email_confirmation'));
> > >                   }
> > > Dave
>
> > > -----Original Message-----
> > > From: [email protected] [mailto:[email protected]] On 
> > > Behalf
> > > Of Simon
> > > Sent: November-02-09 6:49 PM
> > > To: CakePHP
> > > Subject: Two Auth problems never found sloutions for it
>
> > > 1. is save the last login without the auth redirect = to false 2. if the
> > > email is not verified redirect them
>
> > > if you have any sloutions please share- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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