Skip to content
New issue

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

[5.x]: User updating not working properly #15758

Open
kevinmu17 opened this issue Sep 19, 2024 · 0 comments
Open

[5.x]: User updating not working properly #15758

kevinmu17 opened this issue Sep 19, 2024 · 0 comments
Labels

Comments

@kevinmu17
Copy link

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

  1. Create a user with email [email protected]
  2. Create another user with the same email adres and save it
  3. Try to activate user 2, you get the error message
  4. Change the email address to something unique
  5. Save the new email
  6. 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

  • n/a
@kevinmu17 kevinmu17 added the bug label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant