Active
Project:
Drupal core
Version:
main
Component:
user system
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
3 Mar 2021 at 10:04 UTC
Updated:
2 Aug 2024 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gena.io commentedComment #3
longwaveThe easiest way to do this (or change almost any string in Drupal) without code is to use the Interface Translation module to change the message - you can do this even if your site is only in English.
Comment #4
gena.io commentedCompletely agree with you but it looks like some kind of workaround. Also, I suppose it's a good practice/etc to move some messages like that from the code into the config system.
Comment #5
gena.io commentedComment #6
longwavePlease don't add tests on every single environment, unless you are testing a database-specific patch it only needs to be tested once.
Comment #7
gena.io commentedOk, thanks
Comment #8
quietone commentedThis looks familiar.
The string '%name is not recognized as a username or an email address.' was removed in Drupal 9.2.x. in #1521996: Password reset form reveals whether an email or username is in use in Jan 2021. The idea of making configurable was mentioned but I don't see a discussion on whether it should be configurable or not.
For now. one solution for you would be to reroll the patch in that issue for your version of Drupal and post it in that issue for others to use. Thanks.
Comment #14
arunkumarkDo we need this feature of configurable message? As per the issue #1521996: Password reset form reveals whether an email or username is in use we are not enumerating the user information (username or email) in the password reset form. Also, the issue is closed now.