Class dektrium\user\controllers\SecurityController
Inheritance | dektrium\user\controllers\SecurityController » yii\web\Controller |
---|---|
Uses Traits | dektrium\user\traits\AjaxValidationTrait |
Controller that manages user authentication process.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$finder | dektrium\user\Finder | dektrium\user\controllers\SecurityController |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | dektrium\user\controllers\SecurityController | |
actionLogin() | Displays the login page. | dektrium\user\controllers\SecurityController |
actionLogout() | Logs the user out and then redirects to the homepage. | dektrium\user\controllers\SecurityController |
actions() | dektrium\user\controllers\SecurityController | |
authenticate() | Tries to authenticate user via social network. If user has already used this network's account, he will be logged in. Otherwise, it will try to create new user account. | dektrium\user\controllers\SecurityController |
behaviors() | dektrium\user\controllers\SecurityController | |
connect() | Tries to connect social account to user. | dektrium\user\controllers\SecurityController |
Protected Methods
Method | Description | Defined By |
---|---|---|
performAjaxValidation() | Performs ajax validation. | dektrium\user\traits\AjaxValidationTrait |
Property Details
Method Details
public void __construct ( $id, $module, dektrium\user\Finder $finder, $config = [] ) | ||
$id | string | |
$module | dektrium\user\Module | |
$finder | dektrium\user\Finder | |
$config | array |
Displays the login page.
public string|\yii\web\Response actionLogin ( ) |
Logs the user out and then redirects to the homepage.
public \yii\web\Response actionLogout ( ) |
public void actions ( ) |
Tries to authenticate user via social network. If user has already used this network's account, he will be logged in. Otherwise, it will try to create new user account.
public void authenticate ( \yii\authclient\ClientInterface $client ) | ||
$client | \yii\authclient\ClientInterface |
public void behaviors ( ) |
Tries to connect social account to user.
public void connect ( \yii\authclient\ClientInterface $client ) | ||
$client | \yii\authclient\ClientInterface |