What happened?
Description
I have a general config setting: useEmailAsUsername
When I add a user with email [email protected] and create it, that works. When I add another user with the same email address and save it (that works) but trying to activate the user, I get the error that the user already exists. All good up to this point. But now I want to edit this users email adres to [email protected]. This works, but when i'm trying to activate the user i get the error message again with the old email adres?
Steps to reproduce
- Create a user with email [email protected]
- Create another user with the same email adres and save it
- Try to activate user 2, you get the error message
- Change the email address to something unique
- Save the new email
- Activate the user again. You will get the error [email protected] user is already taken
Expected behavior
Update the username based on the new email address
Craft CMS version
5.4.4
PHP version
8.3
Operating system and version
macOS 15
Database type and version
mySQL 8
Image driver and version
No response
Installed plugins and versions
What happened?
Description
I have a general config setting: useEmailAsUsername
When I add a user with email [email protected] and create it, that works. When I add another user with the same email address and save it (that works) but trying to activate the user, I get the error that the user already exists. All good up to this point. But now I want to edit this users email adres to [email protected]. This works, but when i'm trying to activate the user i get the error message again with the old email adres?
Steps to reproduce
Expected behavior
Update the username based on the new email address
Craft CMS version
5.4.4
PHP version
8.3
Operating system and version
macOS 15
Database type and version
mySQL 8
Image driver and version
No response
Installed plugins and versions