PHP 트레잇 CakeDC\Users\Controller\Traits\LoginTrait

상속: use trait CustomUsersTableTrait
파일 보기 프로젝트 열기: CakeDC/users

공개 메소드들

메소드 설명
failedSocialLogin ( mixed $exception, mixed $data, boolean | false $flash = false ) : mixed
failedSocialLoginListener ( Cake\Event\Event $event ) : void
login ( ) : mixed Login user
logout ( ) : type Logout
socialLogin ( ) : array Social login
twitterLogin ( ) : mixed | void Do twitter login
verify ( ) : void Verify for Google Authenticator If Google Authenticator's enabled we need to verify authenticated user. To avoid accidental access to other URL's we store auth'ed used into temporary session to perform code verification.

보호된 메소드들

메소드 설명
_afterIdentifyUser ( array $user, boolean $socialLogin = false, $googleAuthenticatorLogin = false ) : array Update remember me and determine redirect url after user identified
_checkReCaptcha ( ) : boolean Check reCaptcha if enabled for login
_isGoogleAuthenticator ( ) : boolean Check if we doing Google Authenticator Two Factor auth
_isSocialLogin ( ) : boolean Check if we are doing a social login

메소드 상세

_afterIdentifyUser() 보호된 메소드

Update remember me and determine redirect url after user identified
protected _afterIdentifyUser ( array $user, boolean $socialLogin = false, $googleAuthenticatorLogin = false ) : array
$user array user data after identified
$socialLogin boolean is social login
리턴 array

_checkReCaptcha() 보호된 메소드

Check reCaptcha if enabled for login
protected _checkReCaptcha ( ) : boolean
리턴 boolean

_isGoogleAuthenticator() 보호된 메소드

Check if we doing Google Authenticator Two Factor auth
protected _isGoogleAuthenticator ( ) : boolean
리턴 boolean true if Google Authenticator is enabled

_isSocialLogin() 보호된 메소드

Check if we are doing a social login
protected _isSocialLogin ( ) : boolean
리턴 boolean true if social login is enabled and we are processing the social login data in the request

failedSocialLogin() 공개 메소드

public failedSocialLogin ( mixed $exception, mixed $data, boolean | false $flash = false ) : mixed
$exception mixed exception
$data mixed data
$flash boolean | false flash
리턴 mixed

failedSocialLoginListener() 공개 메소드

public failedSocialLoginListener ( Cake\Event\Event $event ) : void
$event Cake\Event\Event event
리턴 void

login() 공개 메소드

Login user
public login ( ) : mixed
리턴 mixed

logout() 공개 메소드

Logout
public logout ( ) : type
리턴 type

socialLogin() 공개 메소드

Social login
public socialLogin ( ) : array
리턴 array

twitterLogin() 공개 메소드

Do twitter login
public twitterLogin ( ) : mixed | void
리턴 mixed | void

verify() 공개 메소드

Verify for Google Authenticator If Google Authenticator's enabled we need to verify authenticated user. To avoid accidental access to other URL's we store auth'ed used into temporary session to perform code verification.
public verify ( ) : void
리턴 void