Skip to content

Commit

Permalink
[fix] - mistakes in flash messages after password reset request
Browse files Browse the repository at this point in the history
  • Loading branch information
krivochenko committed Jul 18, 2015
1 parent 4b8142e commit b46f58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function actionRetryConfirmEmail()
$model = new RetryConfirmEmailForm;
if ($model->load(Yii::$app->request->post()) && $model->validate()) {
if ($model->user->sendEmailConfirmationMail(Yii::$app->module->getCustomMailView('confirmNewEmail'), 'new_email')) {
Yii::$app->getSession()->setFlash('success', Yii::t('users', 'CHECK_YOU_EMAIL_FOR_FURTHER_INSTRUCTION'));
Yii::$app->getSession()->setFlash('success', Yii::t('users', 'CHECK_YOUR_EMAIL_FOR_FURTHER_INSTRUCTION'));
return $this->redirect(Url::toRoute('/user/user/retry-confirm-email'));
}
}
Expand All @@ -96,7 +96,7 @@ public function actionRequestPasswordReset()
$model = new PasswordResetRequestForm;
if ($model->load(Yii::$app->request->post()) && $model->validate()) {
if ($model->sendEmail()) {
Yii::$app->getSession()->setFlash('success', Yii::t('users', 'CHECK_YOU_EMAIL_FOR_FURTHER_INSTRUCTION'));
Yii::$app->getSession()->setFlash('success', Yii::t('users', 'CHECK_YOUR_EMAIL_FOR_FURTHER_INSTRUCTION'));

return $this->goHome();
} else {
Expand Down

0 comments on commit b46f58f

Please sign in to comment.