What happened?
Description
In Craft CMS 5, the users/send-password-reset-email action returns the following error messages:
Craft::t('app', 'Username or email is required.')
Craft::t('app', 'Invalid username or email.')
However, when the useEmailAsUsername configuration is enabled, referencing the username in the front-end is no longer relevant.
Can the messages be adapted to the following when useEmailAsUsername is true?
Craft::t('app', 'Email is required.')
Craft::t('app', 'Invalid email.')
Steps to reproduce
- Enable the
useEmailAsUsername configuration.
- Attempt to use the
users/send-password-reset-email action.
Expected behavior
The error messages should only reference the email when useEmailAsUsername is true.
Actual behavior
The error messages reference both the username and email, which is not relevant when useEmailAsUsername is true.
Craft CMS version
5.2.8
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
In Craft CMS 5, the
users/send-password-reset-emailaction returns the following error messages:Craft::t('app', 'Username or email is required.')Craft::t('app', 'Invalid username or email.')However, when the
useEmailAsUsernameconfiguration is enabled, referencing the username in the front-end is no longer relevant.Can the messages be adapted to the following when
useEmailAsUsernameis true?Craft::t('app', 'Email is required.')Craft::t('app', 'Invalid email.')Steps to reproduce
useEmailAsUsernameconfiguration.users/send-password-reset-emailaction.Expected behavior
The error messages should only reference the email when
useEmailAsUsernameis true.Actual behavior
The error messages reference both the username and email, which is not relevant when
useEmailAsUsernameis true.Craft CMS version
5.2.8
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions