Tuesday, November 3, 2009

Re: Two Auth problems never found sloutions for it

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 <shiftyrobs...@gmail.com> 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 <simon_d...@hotmail.com> wrote:
>
>
>
> > did you set auth redirect to false ??
>
> > On Nov 2, 2:37 pm, "Dave" <make.cake.b...@gmail.com> 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: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate