Authentication Scope error message
So, I want to have a requirement for my users email to be confirmed
before they are allowed to login. This will be represented by a
"confirmed" field in my User table. I have set my Authentication scope
to be array('User.confirmed' => 1) and it works as expected. My only
issue now is that when the user is not confirmed, it still gives me
the same message about my "Username or password is not correct" which
really isn't accurate since it failed because the user wasn't
confirmed yet.
How can I have a separate error message for a confirmation error?
--
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@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home