/**
  * Requests password reset.
  *
  * @return mixed
  */
 public function actionRequestPasswordReset()
 {
     $model = new PasswordResetRequestForm();
     if ($model->load(Yii::$app->request->post()) && $model->validate()) {
         if ($model->sendEmailResetPassword()) {
             Yii::$app->getSession()->setFlash('success', sprintf($this->GetMessage('actionRequestPasswordReset', 'success'), $model->email));
             return $this->redirect("/site/message");
         } else {
             Yii::$app->getSession()->setFlash('danger', $this->GetMessage('actionRequestPasswordReset', 'error'));
         }
     }
     return $this->render('requestPasswordResetToken', ['model' => $model]);
 }