cake-php@googlegroups.com
[Top] [All Lists]

Re: Cake Auth userScope ?

Subject: Re: Cake Auth userScope ?
From: euromark
Date: Sat, 14 Apr 2012 06:31:54 -0700 PDT
Simply be creating your own AuthExt component which overrides the default login() method:


PS: the class is not intended for public use (kind of ugly still from 2008, only upgraded without cleanup to 2.x) - only for reference in this case


Am Samstag, 14. April 2012 15:15:14 UTC+2 schrieb heohni:
Hi,

if a user try to login and his account is not active yet the login will fail because of this:
'scope' => array('User.usr_active' => 1),

Is there anyhow a way to catch this case to display a proper message to the user?

Thanks for help!!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php
<Prev in Thread] Current Thread [Next in Thread>