PHP 클래스 Auth_Jelly, jelly-auth

저자: Israel Canasa
상속: extends Auth
파일 보기 프로젝트 열기: raeldc/jelly-auth

공개 메소드들

메소드 설명
_login ( $user, $password, $remember ) : boolean Logs a user in.
auto_login ( ) : boolean 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 ) : boolean Forces a user to be logged in, without specifying a password.
logged_in ( $role = NULL ) : boolean Checks if a session is active.
logout ( $destroy = FALSE, $logout_all = FALSE ) : boolean Log a user out and remove any auto-login Cookies.
password ( $user ) : string Get the stored password for a username.

보호된 메소드들

메소드 설명
_get_object ( mixed $user ) : Model_User Convert a unique identifier string to a user object
complete_login ( $user ) : void Complete the login for a user by incrementing the logins and setting session data: user_id, username, roles

메소드 상세

_get_object() 보호된 메소드

Convert a unique identifier string to a user object
protected _get_object ( mixed $user ) : Model_User
$user mixed
리턴 Model_User

_login() 공개 메소드

Logs a user in.
public _login ( $user, $password, $remember ) : boolean
리턴 boolean

auto_login() 공개 메소드

Logs a user in, based on the authautologin Cookie.
public auto_login ( ) : boolean
리턴 boolean

check_password() 공개 메소드

Compare password with original (hashed). Works for current (logged in) user
public check_password ( string $password ) : boolean
$password string
리턴 boolean

complete_login() 보호된 메소드

Complete the login for a user by incrementing the logins and setting session data: user_id, username, roles
protected complete_login ( $user ) : void
리턴 void

force_login() 공개 메소드

Forces a user to be logged in, without specifying a password.
public force_login ( $user ) : boolean
리턴 boolean

logged_in() 공개 메소드

Checks if a session is active.
public logged_in ( $role = NULL ) : boolean
리턴 boolean

logout() 공개 메소드

Log a user out and remove any auto-login Cookies.
public logout ( $destroy = FALSE, $logout_all = FALSE ) : boolean
리턴 boolean

password() 공개 메소드

Get the stored password for a username.
public password ( $user ) : string
리턴 string