Method |
Description |
|
auto_login ( ) : mixed |
Logs a user in, based on the authautologin cookie. |
|
check_password ( string $password ) : boolean |
Compare password with original (hashed). Works for current (logged in) user |
|
force_login ( $user, $mark_session_as_forced = FALSE ) : boolean |
Forces a user to be logged in, without specifying a password. |
|
get_user ( ) : mixed |
Gets the currently logged in user from the session (with auto_login check). |
|
logged_in ( $role = NULL, $all_required = TRUE ) : boolean |
Checks if a session is active. |
|
logout ( $destroy = FALSE, $logout_all = FALSE ) : boolean |
Log a user out and remove any autologin cookies. |
|
password ( $user ) : string |
Get the stored password for a username. |
|
remember ( Model_User $user = NULL ) : boolean |
Remember user (create token and save it in cookie) |
|