Two Auth problems never found sloutions for it

View: New views
6 Messages — Rating Filter:   Alert me  

Two Auth problems never found sloutions for it

by Simon-2746 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


RE: Two Auth problems never found sloutions for it

by Dave-418 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@... [mailto:cake-php@...] 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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Two Auth problems never found sloutions for it

by Simon-2746 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


did you set auth redirect to false ??

On Nov 2, 2:37 pm, "Dave" <make.cake.b...@...> 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@... [mailto:cake-php@...] 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 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Two Auth problems never found sloutions for it

by Robert P :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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...@...> wrote:

> did you set auth redirect to false ??
>
> On Nov 2, 2:37 pm, "Dave" <make.cake.b...@...> 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@... [mailto:cake-php@...] 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 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Two Auth problems never found sloutions for it

by Simon-2746 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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


Re: Two Auth problems never found sloutions for it

by Simon-2746 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


anybody ??

On Nov 3, 6:46 am, Simon <simon_d...@...> wrote:

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