프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$module |
메소드 | 설명 | |
---|---|---|
actions ( ) | ||
connectCallback ( |
Connect social auth to the logged-in user | |
loginRegisterCallback ( |
Login/register via social auth |
메소드 | 설명 | |
---|---|---|
attemptLogin ( |
Attempt to log user in by checking if $userAuth already exists in the db, or if a user already has the email address | |
doubleCheckUsername ( |
Double checks username to ensure that it isn't already taken. If so, revert to fallback | |
initUserAuth ( |
Initialize a userAuth model based on $client data. Note that we don't set user_id yet because that can either be the currently logged in user OR a user matched by email address | |
registerAndLoginUser ( |
Register a new user using client attributes and then associate userAuth | |
setInfoFacebook ( array $attributes ) : array | Set info for facebook registration | |
setInfoGoogle ( array $attributes ) : array | Set info for google registration | |
setInfoLinkedIn ( array $attributes ) : array | Set info for LinkedIn registration | |
setInfoReddit ( array $attributes ) : array | Set info for reddit registration | |
setInfoTwitter ( array $attributes ) : array | Set info for twitter registration | |
setInfoVkontakte ( array $attributes ) : array | Set info for vkontakte registration |
protected attemptLogin ( |
||
$client | ||
리턴 | boolean |
public connectCallback ( |
||
$client | ||
리턴 |
protected doubleCheckUsername ( |
||
$user | ||
$fallbackUsername | string | |
리턴 | mixed |
protected initUserAuth ( |
||
$client | ||
리턴 | amnah\yii2\user\models\UserAuth |
public loginRegisterCallback ( |
||
$client | ||
리턴 |
protected registerAndLoginUser ( |
||
$client | ||
$userAuth | amnah\yii2\user\models\UserAuth |
protected setInfoFacebook ( array $attributes ) : array | ||
$attributes | array | |
리턴 | array | [$user, $profile] |
protected setInfoGoogle ( array $attributes ) : array | ||
$attributes | array | |
리턴 | array | [$user, $profile] |
protected setInfoLinkedIn ( array $attributes ) : array | ||
$attributes | array | |
리턴 | array | [$user, $profile] |
protected setInfoReddit ( array $attributes ) : array | ||
$attributes | array | |
리턴 | array | [$user, $profile] |
protected setInfoTwitter ( array $attributes ) : array | ||
$attributes | array | |
리턴 | array | [$user, $profile] |
protected setInfoVkontakte ( array $attributes ) : array | ||
$attributes | array | |
리턴 | array | [$user, $profile] |