Commit 136b01ca authored by alexpott's avatar alexpott

Issue #2561685 by markpavlitski: Follow up to: One-time login link failure...

Issue #2561685 by markpavlitski: Follow up to: One-time login link failure messages are misleading because they are not marked as errors
parent 91b4ae58
......@@ -103,7 +103,7 @@ public function resetPass($uid, $timestamp, $hash) {
}
else {
// Invalid one-time link specifies an unknown user.
drupal_set_message($this->t('The one-time login link you clicked is invalid.'));
drupal_set_message($this->t('The one-time login link you clicked is invalid.'), 'error');
}
return $this->redirect('<front>');
}
......@@ -209,7 +209,7 @@ public function confirmCancel(UserInterface $user, $timestamp = 0, $hashed_pass
return batch_process('');
}
else {
drupal_set_message(t('You have tried to use an account cancellation link that has expired. Please request a new one using the form below.'));
drupal_set_message(t('You have tried to use an account cancellation link that has expired. Please request a new one using the form below.'), 'error');
return $this->redirect('entity.user.cancel_form', ['user' => $user->id()], ['absolute' => TRUE]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment