![]() |
Major form validation error messaging troubles - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html) +--- Thread: Major form validation error messaging troubles (/thread-54996.html) |
Major form validation error messaging troubles - El Forum - 10-04-2012 [eluser]RalphLeMouf[/eluser] Hello - I have a login form that requires email and password. When I submit the form with both fields empty, the proper error messages appear, however when I put a CORRECT email address and a INCORRECT password, "invalid email" error pops up and no error displays for the password. So basically the only time I can get "invalid password" is when I submit the form empty. Here is my view(form): Code: <?php and here is my controller: Code: function validate_credentials_login() any help is greatly appreciated. Thanks in advance. Major form validation error messaging troubles - El Forum - 10-06-2012 [eluser]jmadsen[/eluser] is_unique[users.email] doesn't belong in a login function. it is saying, "the email you passed is already in the database, so you can't use it". if you look in the source code you'll understand better what it is doing this would be appropriate for a registration form. (BTW - this section is for asking about possible bugs in the CI framework, not troubleshooting your own code. please use the "Code" area for this) |