Welcome Guest, Not a member yet? Register   Sign In
Best practice for Login/Password form validation errors?
#6

[eluser]Jakobud[/eluser]
Ya I get what you are saying. I suppose just passing an error message back to be displayed in the view is the right approach.

I would love to use the form validation library to show a custom error for this situation, but you are right: You typically check the username/password against the database AFTER the form validation has passed...

The only way I can see how to do it is to use a custom callback function for one of the inputs, but unfortunately then, the values you are checking against the database in that callback have not yet passed the form validation yet... Chicken or the Egg kinda thing I guess?


Messages In This Thread
Best practice for Login/Password form validation errors? - by El Forum - 01-19-2010, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB