backend/controllers/SiteController.php
/**
     * Resets password.
     *
     * @return mixed
     * @throws BadRequestHttpException
     */
Resets password.
@return mixed
@throws BadRequestHttpException
Resets password . @return mixed @throws BadRequestHttpException
public function actionResetPasswordRequest()
    {
        $model = new ResetPasswordRequestForm();
        if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->sendEmail()) {
            Yii::$app->session->setFlash('success', 'Check your E-Mail for instructions');
            return $this->goHome();
        }
        return $this->render('reset-password-request', [
            'model' => $model,
        ]);
    }
public function actionResetPasswordRequest ( ) { $ model = new ResetPasswordRequestForm ( ) ; if ( $ model -> load ( Yii :: $ app -> request -> post ( ) ) && $ model -> validate ( ) && $ model -> sendEmail ( ) ) { Yii :: $ app -> session -> setFlash ( 'success' , 'Check your E-Mail for instructions' ) ; return $ this -> goHome ( ) ; } return $ this -> render ( 'reset-password-request' , [ 'model' => $ model , ] ) ; }
Resets password.
Resets password .