Closed bhosale-ajay closed 5 years ago
The UI code uses the email address for the user name, which when set, updates the NormalizedUserName
field which has a unique constraint set (see here). In your case, when you update your email address to match your first record, you are getting an error from the database for violating the constraint.
Here is the UI code that is using the Input.Email
field for the username.
In this case, it will be helpful to show a validation error instead of throwing an exception. If I override the default UI, and allow user modifying the email without changing username, the login fails if username and email does not match. Team should reconsider this behavior, or provide a way to override this,
This is planned for 3.0, so closing as dupe - https://github.com/aspnet/Identity/issues/1721
Framework Version - .Net Core 2.1
Project Creation
Start Application
StackTrace -
Overall Email and UserName are confusing, Updating UserName on updating email is very specific implementation.