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 ...Write registration data to additional databaseWrite registration data to additional database
Previous
 
Next
New Post
11/27/2006 1:05 PM
 
Just dropping a note to say I am still working on this! I have made a baby step and found a place to inject my stored procedure call, but now the password is already encrypted. Grrr...without more help from the developers, I am having to pick and dig my way through. If someone knows where / how the password text field gets passed into a script or into a stred procedure; or where it gets encrpted for that matter, I would greatly appreciate the help!
 
New Post
11/27/2006 1:12 PM
 

The password gets encrypted in the application code, before it is sent to the DB.  So you would have to catch it there if you wanted it before it is encrypted.

If you are going to be storing it in two different places and want to be more secure, then you should switch to using hashed passwords instead of encrypted ones.

If you don't really care about the security too much, then you could also switch to storing them in clear text.  Then you would have a clear text version in your DB table.

 


DotNetNuke Modules from Snapsis.com
 
New Post
11/27/2006 2:21 PM
 
Thanks John! That is exactly what I was thinking. The Email daabase I am working with uses MD5. But in order to convert and be the same password as the DNN Database, I need the clear text. The only way I knew to do that was at the point of registration. So....do you know where in the application code that happens? Is it a VB function, a stored procedure, etc? Where does the password that is typed in clear text get passed into the system when you hit the register button. I think if I knew this, I can figure out my little mod.
 
New Post
11/29/2006 12:20 PM
 
Well this is the code that looks like creates a new user when the register button is clicked:

Dim userCreateStatus As UserCreateStatus = userCreateStatus.AddUser

'if a user is found with that username, error.
'this prevents you from adding a username
'with the same name as a superuser.
If Not objUserInfo Is Nothing Then
'username already exists in DB so show user an error
UI.Skins.Skin.AddModuleMessage(Me, String.Format(DotNetNuke.Services.Localization.Localization.GetString("RegistrationFailure", Me.LocalResourceFile), userControl.UserName), UI.Skins.Controls.ModuleMessage.ModuleMessageType.YellowWarning)
Exit Sub
End If

Dim AffiliateId As Integer = Null.NullInteger
If Not Request.Cookies("AffiliateId") Is Nothing Then
AffiliateId = Integer.Parse(Request.Cookies("AffiliateId").Value)
End If

Dim objNewUser As New UserInfo
objNewUser.PortalID = PortalId
objNewUser.Profile.FirstName = userControl.FirstName
objNewUser.Profile.LastName = userControl.LastName
objNewUser.Profile.Unit = addressUser.Unit
objNewUser.Profile.Street = addressUser.Street
objNewUser.Profile.City = addressUser.City
objNewUser.Profile.Region = addressUser.Region
objNewUser.Profile.PostalCode = addressUser.Postal
objNewUser.Profile.Country = addressUser.Country
objNewUser.Profile.Telephone = addressUser.Telephone
objNewUser.Email = userControl.Email
objNewUser.Username = userControl.UserName
objNewUser.Membership.Password = userControl.Password
objNewUser.Membership.Approved = Convert.ToBoolean(IIf(PortalSettings.UserRegistration <> PortalRegistrationType.PublicRegistration, False, True))
objNewUser.AffiliateID = AffiliateId
objNewUser.Profile.Cell = addressUser.Cell
objNewUser.Profile.Fax = addressUser.Fax
objNewUser.Profile.IM = userControl.IM
objNewUser.Profile.Website = userControl.Website
objNewUser.Profile.PreferredLocale = cboLocale.SelectedItem.Value
objNewUser.Profile.TimeZone = Convert.ToInt32(cboTimeZone.SelectedItem.Value)

userCreateStatus = UserController.CreateUser(objNewUser)


So the question is, can this work by passing some of these varable sto another stored procedure? And if so, how does all this work? What exactly does the statement "userCreateStatus = UserController.CreateUser(objNewUser)" do? And would something like this work:

' Create Email Account
Dim emailCreateStatus As EmailCreateStatus = emailCreateStatus.AddEmail
Dim objNewEmail As New EmailInfo

objNewEmail.Username = userControl.UserName
objNewEmail.Membership.Password = userControl.Password

emailCreateStatus = UserController.CreateUser_Email(objNewEmail)
 
New Post
12/6/2006 9:36 AM
 
Can someone PLEASE help me with this? All I need to do is call a stored procedure at the time a person registers. I simply need to pass the username and password fields to the stored procedure. That's it! Where in the world can this be done and what is the syntax? I am beggin for help now, and that isn't pretty, lol!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Write registration data to additional databaseWrite registration data to additional database


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