Méthode |
Description |
|
change_password ( array &$array, $redirect = FALSE ) : boolean |
Validates an array for a matching password and password_confirm field,
and optionally redirects after a successful save. |
|
complete_login ( ) : void |
Complete the login for a user by incrementing the logins and saving login timestamp |
|
email_available ( Validate $array, $field ) : void |
Does the reverse of unique_key_exists() by triggering error if email exists. |
|
login ( array &$array, $redirect = FALSE ) : boolean |
Validates login information from an array, and optionally redirects
after a successful login. |
|
save ( ) : ORM |
Saves the current object. Will hash password if it was changed. |
|
unique_key ( $value ) : string |
Allows a model use both email and username as unique identifiers for login |
|
unique_key_exists ( $value, $field = NULL ) : boolean |
Tests if a unique key value exists in the database. |
|
username_available ( Validate $array, $field ) : void |
Does the reverse of unique_key_exists() by triggering error if username exists. |
|