We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Craft CMS 5, the users/send-password-reset-email action returns the following error messages:
users/send-password-reset-email
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.
useEmailAsUsername
Can the messages be adapted to the following when useEmailAsUsername is true?
Craft::t('app', 'Email is required.')
Craft::t('app', 'Invalid email.')
The error messages should only reference the email when useEmailAsUsername is true.
The error messages reference both the username and email, which is not relevant when useEmailAsUsername is true.
5.2.8
No response
The text was updated successfully, but these errors were encountered:
Account for useEmailAsUsername
11c23bc
Fixes #15425
Thanks for pointing that out! Fixed for Craft 4.11 and 5.3.
Sorry, something went wrong.
No branches or pull requests
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
useEmailAsUsername
configuration.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
The text was updated successfully, but these errors were encountered: