Class dektrium\user\controllers\RecoveryController

Inheritancedektrium\user\controllers\RecoveryController » yii\web\Controller
Uses Traitsdektrium\user\traits\AjaxValidationTrait, dektrium\user\traits\EventTrait

RecoveryController manages password recovery process.

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_AFTER_REQUEST 'afterRequest' Event is triggered after requesting password reset. Triggered with \dektrium\user\events\FormEvent. dektrium\user\controllers\RecoveryController
EVENT_AFTER_RESET 'afterReset' Event is triggered after resetting password. Triggered with \dektrium\user\events\ResetPasswordEvent. dektrium\user\controllers\RecoveryController
EVENT_AFTER_TOKEN_VALIDATE 'afterTokenValidate' Event is triggered after validating recovery token. Triggered with \dektrium\user\events\ResetPasswordEvent. May not have $form property set. dektrium\user\controllers\RecoveryController
EVENT_BEFORE_REQUEST 'beforeRequest' Event is triggered before requesting password reset. Triggered with \dektrium\user\events\FormEvent. dektrium\user\controllers\RecoveryController
EVENT_BEFORE_RESET 'beforeReset' Event is triggered before resetting password. Triggered with \dektrium\user\events\ResetPasswordEvent. dektrium\user\controllers\RecoveryController
EVENT_BEFORE_TOKEN_VALIDATE 'beforeTokenValidate' Event is triggered before validating recovery token. Triggered with \dektrium\user\events\ResetPasswordEvent. May not have $form property set. dektrium\user\controllers\RecoveryController

Property Details

$finder protected property
protected dektrium\user\Finder $finder null

Method Details

__construct() public method

public void __construct ( $id, $module, dektrium\user\Finder $finder, $config = [] )
$id string
$module \yii\base\Module
$finder dektrium\user\Finder
$config array
actionRequest() public method

Shows page where user can request password recovery.

public string actionRequest ( )
throws \yii\web\NotFoundHttpException
actionReset() public method

Displays page where user can reset password.

public string actionReset ( $id, $code )
$id int
$code string
throws \yii\web\NotFoundHttpException
behaviors() public method

public void behaviors ( )