_init()
change_password()
create_login_hash()
create_user()
delete_user()
force_login()
get()
get_email()
get_groups()
get_profile_fields()
get_screen_name()
get_user()
get_user_id()
guest_login()
has_access()
login()
logout()
reset_password()
update_user()
validate_user()
perform_check()
$config
$permissions
$user
OrmAuth ORM driven login driver
package | Fuel |
---|---|
subpackage | Auth |
_init()
change_password($old_password, $new_password, string $username) : bool
string
string
string
username or null for current user
bool
create_login_hash() : string
string
create_user($username, $password, string $email, int $group, array $profile_fields) : bool
string
string
string
must contain valid email address
int
group id
Array
bool
delete_user($username) : bool
string
bool
force_login($user_id) : bool
string
bool
get(string $field, mixed $default) : mixed
string
name of the user field to return
mixed
value to return if the field requested does not exist
mixed
get_email() : string
string
get_groups() : Array
Array
containing the group driver ID & the user's group IDget_profile_fields($field, $default) : Array
Array
get_screen_name() : string
string
get_user() : mixed
mixed
Model\Auth_User object, or false if no user is setget_user_id() : Array
Array
containing this driver's ID & the user's IDguest_login()
has_access($condition, $driver, $user)
login($username_or_email, $password) : bool
string
string
bool
logout() : bool
bool
reset_password(string $username) : string
To be used for resetting a user's forgotten password, should be emailed afterwards.
string
string
update_user(Array $values, $username) : bool
Array
properties to be updated including profile fields
string
bool
validate_user($username_or_email, $password) : bool
bool
perform_check() : bool
bool
$config : array
$user : \Model\Auth_User