app\controllers\UserController::actionForgot PHP Method

actionForgot() public method

public actionForgot ( )
    public function actionForgot()
    {
        $model = Yii::$app->getModule("user")->model("ForgotForm");
        if ($model->load(Yii::$app->request->post()) && $model->sendForgotEmail()) {
            Yii::$app->session->setFlash("Forgot-success", Yii::t("user", "Instructions to reset your password have been sent"));
        }
        return $this->render("forgot", ["model" => $model]);
    }