Simply be creating your own AuthExt component which overrides the default 
login() method:

https://github.com/dereuromark/tools/blob/2.0/Controller/AuthExtComponent.php#L108
 

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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to