Welcome Guest, Not a member yet? Register   Sign In
User Login Page?
#3

[eluser]Nathan Moore[/eluser]
Simplelogin is a good library to reference.

If you wanted to build something yourself, you could use a custom validation method. Basically, you would check validation at the beginning of your login method in the controller.

Have the custom validation function check the database to verify the user credentials are correct. If so, allow them to login, set a cookie/session, etc.

If not, show the form.

You will also want to make sure the authentication checks out at the beginning of the controller for any password-protected area.

Check out this page: http://ellislab.com/codeigniter/user-gui...ation.html
And look under the "Callbacks: Your own Validation Functions" heading

I hope that helps!


Messages In This Thread
User Login Page? - by El Forum - 07-28-2008, 09:01 AM
User Login Page? - by El Forum - 07-28-2008, 09:52 AM
User Login Page? - by El Forum - 07-28-2008, 11:38 AM
User Login Page? - by El Forum - 07-28-2008, 01:11 PM
User Login Page? - by El Forum - 07-28-2008, 08:23 PM
User Login Page? - by El Forum - 07-28-2008, 09:41 PM
User Login Page? - by El Forum - 07-28-2008, 11:34 PM
User Login Page? - by El Forum - 07-28-2008, 11:53 PM
User Login Page? - by El Forum - 07-29-2008, 09:59 AM
User Login Page? - by El Forum - 07-29-2008, 10:59 AM
User Login Page? - by El Forum - 07-29-2008, 11:24 AM
User Login Page? - by El Forum - 07-29-2008, 09:59 PM
User Login Page? - by El Forum - 07-30-2008, 01:35 AM
User Login Page? - by El Forum - 07-30-2008, 04:25 AM
User Login Page? - by El Forum - 07-30-2008, 05:42 AM
User Login Page? - by El Forum - 07-30-2008, 10:00 PM
User Login Page? - by El Forum - 09-24-2008, 09:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB