Remove new line from ChangePasswordResetForm message

Created on 26 April 2024, 7 months ago

Problem/Motivation

The message with expiration date in ChangePasswordResetForm::buildForm() contains a new line.

<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>

The same message in UserPasswordResetForm::buildForm() does not contain a new line.

It leads to missing translation in other languages https://ftp.drupal.org/files/translations/all/change_pwd_page/

Proposed resolution

Remove the new line \n in ChangePasswordResetForm class.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024