Two Auth problems never found sloutions for it

6 messages Options
Embed this post
Permalink
Simon-12

Two Auth problems never found sloutions for it

Reply Threaded More More options
Print post
Permalink

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 [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Dave-33

RE: Two Auth problems never found sloutions for it

Reply Threaded More More options
Print post
Permalink

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: [hidden email] [mailto:[hidden email]] 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 [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Simon-12

Re: Two Auth problems never found sloutions for it

Reply Threaded More More options
Print post
Permalink

did you set auth redirect to false ??

On Nov 2, 2:37 pm, "Dave" <[hidden email]> 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: [hidden email] [mailto:[hidden email]] 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 [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Robert P-2

Re: Two Auth problems never found sloutions for it

Reply Threaded More More options
Print post
Permalink

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 <[hidden email]> wrote:

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

Simon-12

Re: Two Auth problems never found sloutions for it

Reply Threaded More More options
Print post
Permalink

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

Simon-12

Re: Two Auth problems never found sloutions for it

Reply Threaded More More options
Print post
Permalink

anybody ??

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