Skip to content
Snippets Groups Projects

Issue #3443755: Remove new line from ChangePasswordResetForm message.

1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -67,8 +67,7 @@ class ChangePasswordResetForm extends FormBase {
@@ -67,8 +67,7 @@ class ChangePasswordResetForm extends FormBase {
public function buildForm(array $form, FormStateInterface $form_state, AccountInterface $user = NULL, $expiration_date = NULL, $timestamp = NULL, $hash = NULL) {
public function buildForm(array $form, FormStateInterface $form_state, AccountInterface $user = NULL, $expiration_date = NULL, $timestamp = NULL, $hash = NULL) {
if ($expiration_date) {
if ($expiration_date) {
$form['message'] = [
$form['message'] = [
'#markup' => $this->t('<p>This is a one-time login for %user_name and will expire on
'#markup' => $this->t('<p>This is a one-time login for %user_name and will expire on %expiration_date.</p><p>Click on this button to log in to the site and change your password.</p>',
%expiration_date.</p><p>Click on this button to log in to the site and change your password.</p>',
['%user_name' => $user->getDisplayName(), '%expiration_date' => $expiration_date]),
['%user_name' => $user->getDisplayName(), '%expiration_date' => $expiration_date]),
];
];
$form['#title'] = $this->t('Reset password');
$form['#title'] = $this->t('Reset password');
Loading