AspNetIdentity icon indicating copy to clipboard operation
AspNetIdentity copied to clipboard

ChangeEmailAsync - not updating the username

Open jmatheti opened this issue 6 years ago • 1 comments

ChangeEmailAsync is not updating the username though I have set the uniqueEmailAddress in the builder.

var builder = services.AddIdentity<ApplicationUser, ApplicationRole>(opt => { opt.User.RequireUniqueEmail = true; }

one of the issues have "IsUsernameEmailAddress" dynamic property added recently. I'm using 2.1 .net core. but could not see this.

Wondering do I need to use the above in this case? or Is it a bug?

Ex: Generate token GenerateChangeEmailTokenAsync then ChangeEmailAsync to see the behaviour.

jmatheti avatar Mar 08 '19 04:03 jmatheti

Hi,

Could be a completely different issue however I wonder if what worked for me might also help you, see https://github.com/aspnet/AspNetIdentity/issues/32

DotNetDublin avatar Aug 10 '20 14:08 DotNetDublin