Saturday, April 21, 2012

Re: Authentication Scope error message

This message is generated on your Users::login() method, right? You can check if the user exist and isn't confirmed before issuing the setFlash() method.

Regards,
--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil

Assando Sites - Curso online de CakePHP



On Sat, Apr 21, 2012 at 06:24, Michael Gaiser <mjgaiser@gmail.com> wrote:
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

--
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

No comments: