JudahGabriel / RavenDB.Identity

RavenDB Identity provider for ASP.NET Core. Let RavenDB manage your users and logins.
https://www.nuget.org/packages/RavenDB.Identity/1.0.0
MIT License
61 stars 29 forks source link

Register User: The email address ... is already taken. #20

Closed zardos2191 closed 4 years ago

zardos2191 commented 4 years ago

Hi,

when I register a new User, the user is created and it works well. After that I deleted this User in the RavenDB. Then I tried to Register the same email adress again, and it fails telling me: "The email address ... is already taken." How is this possible, after i deleted the User in the database? I restarted the database and the demo application, but the email adress cannot be registered again. Is there anything I did wrong?

Thanks in advance, keep up your good work! Bye

zardos2191 commented 4 years ago

By the way: It would be awesome if you could introduce the correct usage of the RoleManager into your demo application.

JudahGabriel commented 4 years ago

Deleting the user in the database isn't enough.

You also need to go into Compare Exchange and delete it there: image

This is required for making RavenDB.Identity work in a cluster.