PHP Trait CakeDC\Users\Controller\Traits\LoginTrait

Inheritance: use trait CustomUsersTableTrait
Afficher le fichier Open project: CakeDC/users

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
_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

Method Details

_afterIdentifyUser() protected méthode

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
Résultat array

_checkReCaptcha() protected méthode

Check reCaptcha if enabled for login
protected _checkReCaptcha ( ) : boolean
Résultat boolean

_isGoogleAuthenticator() protected méthode

Check if we doing Google Authenticator Two Factor auth
protected _isGoogleAuthenticator ( ) : boolean
Résultat boolean true if Google Authenticator is enabled

_isSocialLogin() protected méthode

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

failedSocialLogin() public méthode

public failedSocialLogin ( mixed $exception, mixed $data, boolean | false $flash = false ) : mixed
$exception mixed exception
$data mixed data
$flash boolean | false flash
Résultat mixed

failedSocialLoginListener() public méthode

public failedSocialLoginListener ( Cake\Event\Event $event ) : void
$event Cake\Event\Event event
Résultat void

login() public méthode

Login user
public login ( ) : mixed
Résultat mixed

logout() public méthode

Logout
public logout ( ) : type
Résultat type

socialLogin() public méthode

Social login
public socialLogin ( ) : array
Résultat array

twitterLogin() public méthode

Do twitter login
public twitterLogin ( ) : mixed | void
Résultat mixed | void

verify() public méthode

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
Résultat void