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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using the AddUser SPROC to Create a UserUsing the AddUser SPROC to Create a User
Previous
 
Next
New Post
7/25/2009 11:58 AM
 

There is much more involved in adding a user than simply adding an entry to the DNN Users table via the AddUser sproc. Many tables such as aspnet_Membership, aspnet_Users, UserPortals, UserProfile, and UserRoles are also affected. Other side effects such as the sending of new user emails, password encryption, etc. are handled in application code not SQL manipulation.

Have you considered calling the appropriate API methods in the UserController and other related class instead of a SQL approach or taken a look at the DNN framework source code? The DotNetNuke.Entities.Users.UserController.CreateUser method is a good place to start. In addition to not being sufficient in this case, executing core SQL sprocs such as AddUser or any manipulation of the data in core DNN tables is asking for trouble when it comes time to upgrade your DNN installation. Although there is some possibility that core framework methods might change as part of an upgrade, the core team makes every effort not to introduce breaking changes. There is no such guarantee when it comes to core tables or sprocs - those have and will continue to undergo many changes with each version upgrade.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
7/25/2009 10:41 PM
 

William:

That was a very informative approach. Unfortunately I am not a real developer, but I can do some SQL stuff. But it looks like that is not going to be enough in this case. I actually paid to have this done about 3 months ago by a development organization and they were not able to deliver due to unforeseen circumstances.

So I thought I would try an XMod Pro approach and build the form myself and run some SQL to pull all the pieces together. I am in danger of losing a contract due to the other organization. So I was trying this approach to show some progress and salvage this contract. If you are familiar with XMod Pro, you might know that I can use it to do javascript and/or pass in data to another page on redirection. If you could suggest path forward short of totally starting over, that would be great.

Otherwise, if you could recommend an alternate solution that would be nice.


Forerunner Communications, LLC
DotNetNuke Integration Specialists

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using the AddUser SPROC to Create a UserUsing the AddUser SPROC to Create a User


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