Welcome Guest, Not a member yet? Register   Sign In
An authentication model i've created
#1

[eluser]Unknown[/eluser]
This model class will handle user authentication without modifying CI classes
one single php file.
hope it will help, though i would love to hear some feedback since im gonna use it in my project.

So let me know what you think.

var $loginPage - the login page for redirection.
Authenticate - will login the user with remember me support.
Validate - will verify the user is authenticated when accessing a members area
LogOut - will destroy the user session and logout.
LocalAuth - this is a private method, the only method you will have to modify for a real login from your db.

Enjoy.
Rotem




Theme © iAndrew 2016 - Forum software by © MyBB