have you looked at this

http://bakery.cakephp.org/articles/view/authed-adds-rule-based-userscope-to-auth

On Oct 6, 9:57 am, Simon <simon_d...@hotmail.com> wrote:
> 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"
>
>
>
> <d...@widepixels.com> 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:simon_d...@hotmail.com]
> > 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"
> > <d...@widepixels.com> 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 -- 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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to