HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Lost the host passwordLost the host password
Previous
 
Next
New Post
10/5/2006 4: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 11:43 AM
 
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 11:51 AM
 
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 12: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 12: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


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.