PHP Трейт CakeDC\Users\Controller\Traits\LoginTrait

Наследование: use trait CustomUsersTableTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
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