Hi, Im trying to find out where the errror message on the page at /customer/account/forgotpassword/ is coming from.
I have changed the number of password reset attempts allowed in the admin panel but I also want to edit the contents of the actual error message.
"We received too many requests for password resets. Please wait and try again later or contact hello@example.com."
Does anyone know where this text can be edited? Is in the admin panel or in an .xml or .csv file somewhere?
Thanks in advance
You need to add this line to the translation csv and "translate" it to whatever you want:
"We received too many requests for password resets. Please wait and try again later or contact %1."
To modify this message, you'll usually need to edit a specific file in the Magento codebase, as such messages are not typically editable from the admin panel. Here's how you can proceed:
Locate the File:
Search for the Message:
Edit the File:
Clear Cache:
Paco Abella
https://www.magento-specialist.com/
Hello @climbah,
you will find the file at path vendor/magento/module-security/i18n/en_US.csv
You need to add this line to your translation csv file and change it to whatever you want:
"Too many password reset requests. Please wait and try again or contact %1.","Your message you want to add."
After making changes, clear Magento's cache from the admin panel or using the command line to ensure that your changes take effect. The command line method is:
bin/magento cache:clean
If you still have any question please Contact Us
If the issue will be resolved, Click Kudos & Accept as a Solution.