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* assando-sites.com.br <http://goo.gl/b1EEd> thiagobelem.net [email protected] *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt On Sat, Apr 21, 2012 at 06:24, Michael Gaiser <[email protected]> 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 > [email protected] 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
