PHP 클래스 Frontend\Modules\Profiles\Engine\Authentication

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
cleanupOldSessions ( ) Cleanup old session records in the database.
getLoginStatus ( string $email, string $password ) : string Get the login/profile status for the given e-mail and password.
getProfile ( ) : Profile Get a profile object with information about a profile.
isLoggedIn ( ) : boolean Check if a profile is logged in.
login ( integer $profileId, boolean $remember = false ) : boolean Login a profile.
logout ( ) Logout a profile.
updatePassword ( integer $profileId, string $password ) Update profile password and salt.

메소드 상세

cleanupOldSessions() 공개 정적인 메소드

Cleanup old session records in the database.
public static cleanupOldSessions ( )

getLoginStatus() 공개 정적인 메소드

Get the login/profile status for the given e-mail and password.
public static getLoginStatus ( string $email, string $password ) : string
$email string Profile email address.
$password string Profile password.
리턴 string One of the FrontendProfilesAuthentication::LOGIN_* constants.

getProfile() 공개 정적인 메소드

Get a profile object with information about a profile.
public static getProfile ( ) : Profile
리턴 Profile

isLoggedIn() 공개 정적인 메소드

Check if a profile is logged in.
public static isLoggedIn ( ) : boolean
리턴 boolean

login() 공개 정적인 메소드

Login a profile.
public static login ( integer $profileId, boolean $remember = false ) : boolean
$profileId integer Login the profile with this id in.
$remember boolean Should we set a cookie for later?
리턴 boolean

logout() 공개 정적인 메소드

Logout a profile.
public static logout ( )

updatePassword() 공개 정적인 메소드

Update profile password and salt.
public static updatePassword ( integer $profileId, string $password )
$profileId integer Profile id for which we are changing the password.
$password string New password.