Class Ion_auth_model
Name: Ion Auth Model
Author: Ben Edmunds ben.edmunds@gmail.com
- CI_Model
-
Ion_auth_model
Added Awesomeness: Phil Sturgeon
Location: http://github.com/benedmunds/CodeIgniter-Ion-Auth
Created: 10.01.2009
Description: Modified auth system based on redux_auth with extensive customization. This is basically what Redux Auth 2 should be. Original Author name has been kept but that does not mean that the method has not been modified.
Requirements: PHP5 or above
Located at ionauth/models/Ion_auth_model.php
Methods summary
public
|
|
public
|
#
hash_password( $password, $salt = false, $use_sha1_override = FALSE )
Hashes the password to be stored in the database. |
public
|
#
hash_password_db( $id, $password, $use_sha1_override = FALSE )
This function takes a password and validates it against an entry in the users table. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
recheck_session( )
recheck_session verifies if the session should be rechecked according to the configuration item recheck_timer. If it does, then it will check if the user is still active |
public
boolean
|
#
is_max_login_attempts_exceeded( string $identity )
is_max_login_attempts_exceeded Based on code from Tank Auth, by Ilya Konyukhov (https://github.com/ilkon/Tank-Auth) |
public
integer
|
#
get_attempts_num( string $identity )
Get number of attempts to login occured from given IP-address or identity Based on code from Tank Auth, by Ilya Konyukhov (https://github.com/ilkon/Tank-Auth) |
public
boolean
|
#
is_time_locked_out( $identity )
Get a boolean to determine if an account should be locked out due to exceeded login attempts within a given period |
public
integer
|
#
get_last_attempt_time( string $identity )
Get the time of the last time a login attempt occured from given IP-address or identity |
public
|
#
increase_login_attempts( string $identity )
increase_login_attempts Based on code from Tank Auth, by Ilya Konyukhov (https://github.com/ilkon/Tank-Auth) |
public
|
#
clear_login_attempts( string $identity, $expire_period = 86400 )
clear_login_attempts Based on code from Tank Auth, by Ilya Konyukhov (https://github.com/ilkon/Tank-Auth) |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
object
|
|
public
object
|
|
public
array
|
|
public
boolean
|
|
public
boolean
|
|
public
object
|
|
public
object
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
#
create_group( $group_name = FALSE, $group_description = '', $additional_data = array() )
create_group |
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
protected
|
|
protected
|
Properties summary
public
array
|
$tables
Holds an array of tables used |
#
array()
|
public
string
|
$activation_code
activation code |
|
public
string
|
$forgotten_password_code
forgotten password key |
|
public
string
|
$new_password
new password |
|
public
string
|
$identity
Identity |
|
public
array
|
$_ion_where
Where |
#
array()
|
public
array
|
$_ion_select
Select |
#
array()
|
public
array
|
$_ion_like
Like |
#
array()
|
public
string
|
$_ion_limit
Limit |
#
NULL
|
public
string
|
$_ion_offset
Offset |
#
NULL
|
public
string
|
$_ion_order_by
Order By |
#
NULL
|
public
string
|
$_ion_order
Order |
#
NULL
|
protected
object
|
$_ion_hooks
Hooks |
|
protected
string
|
$response
Response |
#
NULL
|
protected
string
|
$messages
message (uses lang file) |
|
protected
string
|
$errors
error message (uses lang file) |
|
protected
string
|
$error_start_delimiter
error start delimiter |
|
protected
string
|
$error_end_delimiter
error end delimiter |
|
public
array
|
$_cache_user_in_group
caching of users and their groups |
#
array()
|
protected
array
|
$_cache_groups
caching of groups |
#
array()
|