From f8f5f43abd7b4a91f52d3ad16f6457a9970a1201 Mon Sep 17 00:00:00 2001 From: Abdullah Almsaeed Date: Thu, 10 Oct 2013 10:54:59 -0400 Subject: [PATCH] Update documantation --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 60c07d6..cc55593 100644 --- a/README.md +++ b/README.md @@ -8,22 +8,31 @@ CI_AuthLTE is a light authentication library for codeigniter 2.x. Dependencies ============ PHP 5.3 or higher + Codeigniter 2.x or higher + MySQL database Main Features ============= 1- PHPass for password encryption + 2- Limited login attempts + 3- Secured "remember me" with limited time period + 4- Forgetton password help + 5- Optional activation email + 6- Groups and priviledges control + 7- Simple database structure Documentation ============= Installation: + Add the files to the corresponding directories. Then, dump the sql file to your database. Open the auth_model.php file which is located in the Application/models directory. Make sure to edit the settings to match your desire. @@ -33,6 +42,7 @@ $this->load->model('auth_model'); ``` Creating an account: + To create an account simply use the create_account() function. Example: ```PHP $user_id = $this->auth_model->create_account($email, $password); @@ -48,6 +58,7 @@ $user_id = $this->auth_model->create_account($email, $password, NULL, $custom_da If you want the account to be connected to a group, add the group id as a 3rd paramater. Logging In: + Log a user in using the login() function. Example: ```PHP $this->auth_model->login($email, $password, $remember_me = FALSE);