diff options
Diffstat (limited to 'core/modules/user/src/Form/UserPasswordForm.php')
-rw-r--r-- | core/modules/user/src/Form/UserPasswordForm.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/user/src/Form/UserPasswordForm.php b/core/modules/user/src/Form/UserPasswordForm.php index a7ae862..b805641 100644 --- a/core/modules/user/src/Form/UserPasswordForm.php +++ b/core/modules/user/src/Form/UserPasswordForm.php @@ -140,7 +140,7 @@ class UserPasswordForm extends FormBase { $mail = _user_mail_notify('password_reset', $account, $langcode); if (!empty($mail)) { $this->logger('user')->notice('Password reset instructions mailed to %name at %email.', ['%name' => $account->getUsername(), '%email' => $account->getEmail()]); - drupal_set_message($this->t('Further instructions have been sent to your email address.')); + $this->messenger()->addStatus($this->t('Further instructions have been sent to your email address.')); } $form_state->setRedirect('user.page'); |