DNN 5 enabling requiresUniqueEmail = true
Last Post 07/11/2010 3:27 PM by Joseph Craig. 1 Replies.
Author Messages
aravala
Nuke Newbie
Nuke Newbie
Posts:1


--
07/11/2010 2:58 PM  
Hi, DNN by default sets requiresUniqueEmail= false. We went like with this unknowingly now there are duplicate accounts using same email address. Is there any way in dnn to enable this constraint and stop creating duplicate accounts with same email? When I enable the constraint requiresUniqueEmail= true, if a user tries to login, he will be getting the screen saying invalid email. I tried to delete the duplicate accounts, but with dnn 5 it is only soft delete, and when I login with a single final account it still shows invalid email. I tried to message the email of the duplicate accounts in Aspnet_membership and Users table to update to append the username to the email. Now, when I login, I still see the same error. Is there any way in dnn to enable this constraint and stop creating duplicate accounts with same email?
Joseph Craig
DNN MVP
Posts:11667


--
07/11/2010 3:27 PM  
You can change web.config to require unique email addresses.

Chris Hammond has a blog entry here about hard deleting users.  If you do this, I would recommend doing it on a copy of your live database.

Joe Craig, Patapsco Research Group
Complete DNN Support


---