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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Lost the host passwordLost the host password
Previous
 
Next
New Post
10/5/2006 6:46 AM
 
Morning All,

I have been given a DNN project to complete for my company that was started by a previous employee. Obviously we now don't have any passwords to logon and I am struggling to find out how to either reset the password or create a new host account.

I have tried to change the email address and get the password sent to me but the email functionality does not seem to be working in this project.

I have also run the following SQL script (below) that is floating around the internet but with no luck.

I am very new to DNN so any help would be greatly appreciated.

Thanks,
Gavin


Declare @UserName NVarChar(255)
Declare @NewPassword NVarChar(255)
Declare @PasswordSalt NVarChar(128)
Declare @Application NVarChar(255)

-- Enter the user name and new password between ''
-- do not leave any spaces unless intended to do so.
-- Edit only between single quote characters
Set @UserName = 'host' -- This default DNN host user
Set @NewPassword = '1' --New password
-- Do modify any code below this line

Set @Application = (SELECT [ApplicationID] FROM aspnet_Users WHERE UserName=@UserName)
print @Application
Set @PasswordSalt = (SELECT PasswordSalt FROM aspnet_Membership WHERE UserID IN (SELECT UserID FROM aspnet_Users WHERE UserName=@UserName))

Exec dbo.aspnet_Membership_ResetPassword @Application, @UserName, @NewPassword, 10, 10, @PasswordSalt, -5
 
New Post
10/5/2006 1:43 PM
 
Okay since it took so long before this message was approved I found and ugly hack around.

I would still appreciate the elegant answer but for the people who have searched on google here is what I did.

Find the control SignIn.ascx

The line after where it checks for a valid user add in

Dim uc AS UserController = new UserController
objUser = uc.GetUser(PortalID, UserID)

this then populates the user object with the required info and logs you on.

Now create a new SuperUser and then login with your new user, Once logged in edit the Host user's account and reset the password.

The syntax I posted might not be 100% as I am not on my development machine at the moment but you get the point..... Well at least I hope you do :)

Again I would like to see the elegant answer please.
 
New Post
10/5/2006 1:51 PM
 
you know if you have another account and  password for you can make it a superuser by setting a single column value.

DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
10/5/2006 2:04 PM
 

... in fact I only knew it existed by looking in the SQL Server database tables.

What is this account used for? Do I need to know the password? Is there a default?

Thanks,

Paul Cutcliffe
eNet IT Solutions Ltd
+44 (0)1323 640500
+44 (0)7739 731427

 
New Post
10/5/2006 2:29 PM
 
dstruve wrote
you know if you have another account and  password for you can make it a superuser by setting a single column value.


The problem I had was that even though there where many accounts I didn't know a single password for any of them.

It is a good point though, what is the column which sets the superuser account?

Sorry I am very new at DNN.....
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Lost the host passwordLost the host password


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