Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unique EmailsUnique Emails
Previous
 
Next
New Post
2/22/2010 1:01 PM
 

I need to make my portals so that everything is based off of unique email addresses. I went ahead and updated the web.config file to properly do this and ran into a bit of a problem.  People who did have 2 or more email addresses already registered with the site, upon logging in would get a "critical error" that would state "ithe E-mail supplied is invalid."

 

To remedy this, I went through and deleted accounts that had multiple email addresses, and just left 1 active so that they would have something to login. The problem is, is that these accounts still will not allow people to login, and brings up the critical error nnoted above.

for instance, i had my host account registered to "whatever@domain.com" and had a few test accounts registered with the same email address. I went through and deleted all the test accounts, leaving only the host account with the "whatever@domain.com" and It will not allow me to login as host. It brings up the error. My guess is that the accounts i deleted are still listed somewhere in the system. 

Even though I deleted these accounts, are they still listed in the database? How can i compelely purge the deleted accounts so that the system thinks there's only a single address?

 

 
New Post
2/22/2010 1:50 PM
 

When a user is deleted they are marked as deleted in the DB, but not removed. You would have to remove them completely I believe to fix your problem.

I don't believe there's a way to do that in the front end of DNN, but you can likely do it in the database manually. I haven't tried this before, but you would want to delete them from the following tables

userportals

users

aspnet_membership

aspnet_users

userprofile


 

I think that would suffice, there might be another table or two though.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
2/22/2010 2:06 PM
 

 Knowing nothing about tables, it scares me. I did create a backup of my database... is there where I find it? Do i open it up in a particular program? I've never had to really do anything like this before, but it sounds as though it will be necessary in order to. 

 
New Post
2/22/2010 2:13 PM
 

Joseph, I'll see if I can't come up with a SQL statement that you can run using the Host/SQL page. Give ma few minutes and I'll try to get it posted here.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
2/22/2010 2:40 PM
 

Joseph, Here's something I threw together. I was able to test it on a site that had one deleted user, so far things appear to be fine. You can run this on your Host/SQL page, so you don't need other software to execute this code.

PLEASE BACKUP YOUR DATABASE BEFORE YOU RUN THIS JUST IN CASE

/*copy below*/

delete {databaseOwner}{objectQualifier}userroles where userid=(select top 1 userid from {databaseOwner}{objectQualifier}userportals where isdeleted=1 and userid not in (select userid from {databaseOwner}{objectQualifier}userportals where isdeleted=0))

delete {databaseOwner}{objectQualifier}userprofile where userid=(select top 1 userid from {databaseOwner}{objectQualifier}userportals where isdeleted=1 and userid not in (select userid from {databaseOwner}{objectQualifier}userportals where isdeleted=0))

delete aspnet_membership where userid=( select userid from aspnet_users where username=(select username from {databaseOwner}{objectQualifier}users where userid=(select top 1 userid from {databaseOwner}{objectQualifier}userportals where isdeleted=1 and userid not in (select userid from {databaseOwner}{objectQualifier}userportals where isdeleted=0)))) 

delete aspnet_users where username=(select username from {databaseOwner}{objectQualifier}users where userid=(select top 1 userid from {databaseOwner}{objectQualifier}userportals where isdeleted=1 and userid not in (select userid from {databaseOwner}{objectQualifier}userportals where isdeleted=0)))

delete {databaseOwner}{objectQualifier}userportals where userid=(select top 1 userid from {databaseOwner}{objectQualifier}userportals where isdeleted=1 and userid not in (select userid from {databaseOwner}{objectQualifier}userportals where isdeleted=0))

delete {databaseOwner}{objectQualifier}users where userid not in (select userid from {databaseOwner}{objectQualifier}userportals) and issuperuser=0

/*end copy*/


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unique EmailsUnique Emails


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out