Welcome Guest, Not a member yet? Register   Sign In
how to validate user's login?
#2

[eluser]charlie spider[/eluser]
check out the validation class here:

http://ellislab.com/codeigniter/user-gui...ation.html

you will be able to add standard validation rules like "required" or check that a password entered in twice matches itself.

if you want to check whether a new username is already in use, you can create a callback function to retrieve existing usernames from your db and compare them to the new username

but if you just want to check that an existing username and password are legit, then i would recommend checking out one of the many authorization libraries like FreakAuth or ReduxAuth or Simple Auth. Those will take care of all of your login needs depending on which one you choose.


Messages In This Thread
how to validate user's login? - by El Forum - 07-01-2008, 10:08 AM
how to validate user's login? - by El Forum - 07-01-2008, 10:28 AM
how to validate user's login? - by El Forum - 07-01-2008, 11:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB