that would be very nice the solution you came up with its good at
least it works
On Oct 6, 9:44 am, "Dave Maharaj :: WidePixels.com"
<[email protected]> wrote:
> A crap solution I tried that works is in the login function.
>
> The user logins in then read the Auth and then log them out and re-direct
>
> if ($this->Auth->user('confirmed') == '0') {
>         $this->Session->destroy();
>         $this->redirect(array('action' => 'pending_email_confirmation'));
>
> }
>
> Would be nice to not even log them in and re-direct but I cant find anything
> related.
>
> Dave
>
>
>
> -----Original Message-----
> From: Simon [mailto:[email protected]]
> Sent: October-06-09 2:06 PM
> To: CakePHP
> Subject: Re: Users Scope
>
> i'm having the same question
>
> On Oct 6, 9:25 am, "Dave Maharaj :: WidePixels.com"
> <[email protected]> wrote:
> > How can you redirct to a page explaining why a user can not login?
>
> > $this->Auth->userScope = array('User.confirmed' => '1');
>
> > So if its not been confirmed redirect to a page explainng why...please
> > confirm your email what not.
>
> > Dave- 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