Duplicated User

Topics: General, Troubleshooting
Mar 19, 2012 at 5:21 PM

I have two users in my database with the same username and email address.

I am looking at the Users module and the itWORKS.ExtendedRegistration and I see code that should prevent this (VeryfiUnicity method).
This method is called in all places where I see users created.

Has anyone experienced this before or maybe have an idea how it happened? Seems like the system should not allow it, yet it has happened.

Thanks,
Will

Mar 19, 2012 at 5:29 PM

I haven't had this issue (yet). But I really would like to be able to use unique constraints in the db to avoid issues like this. When I tried before I had problems because it seemed like Orchard or NHib was trying to insert db records without values for non-nullable columns before saving stuff. I plan to revisit this issue to see if I was doing something wrong and/or investigate if it is something that can be addressed.