Class dektrium\user\controllers\RegistrationController
Inheritance | dektrium\user\controllers\RegistrationController » yii\web\Controller |
---|---|
Uses Traits | dektrium\user\traits\AjaxValidationTrait |
RegistrationController is responsible for all registration process, which includes registration of a new account, resending confirmation tokens, email confirmation and registration via social networks.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$finder | dektrium\user\Finder | dektrium\user\controllers\RegistrationController |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | dektrium\user\controllers\RegistrationController | |
actionConfirm() | Confirms user's account. If confirmation was successful logs the user and shows success message. Otherwise shows error message. | dektrium\user\controllers\RegistrationController |
actionConnect() | Displays page where user can create new account that will be connected to social account. | dektrium\user\controllers\RegistrationController |
actionRegister() | Displays the registration page. | dektrium\user\controllers\RegistrationController |
actionResend() | Displays page where user can request new confirmation token. If resending was successful, displays message. | dektrium\user\controllers\RegistrationController |
behaviors() | dektrium\user\controllers\RegistrationController |
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 | \yii\base\Module | |
$finder | dektrium\user\Finder | |
$config | array |
Confirms user's account. If confirmation was successful logs the user and shows success message. Otherwise shows error message.
public string actionConfirm ( $id, $code ) | ||
$id | int | |
$code | string | |
throws | \yii\web\HttpException |
---|
Displays page where user can create new account that will be connected to social account.
public string actionConnect ( $code ) | ||
$code | string | |
throws | \yii\web\NotFoundHttpException |
---|
Displays the registration page.
After successful registration if enableConfirmation is enabled shows info message otherwise redirects to home page.
public string actionRegister ( ) | ||
throws | \yii\web\HttpException |
---|
Displays page where user can request new confirmation token. If resending was successful, displays message.
public string actionResend ( ) | ||
throws | \yii\web\HttpException |
---|
public void behaviors ( ) |