Auto-Install Applications

How do I recover my DNN password?

Auto-Install Applications > DotNetNuke

This is a easy way to recover your DNN password if you forgot your password. Simple create a file call recover.aspx and put it in your site's root folder.  Then cover and paste the following code into it and then call it from a browser.  Then it will show you your HOST account password.  Then with your HOST account password, you can reset any other users you want.

<%@ Page Language="C#" %> <script runat="server">     void Page_Load(object sender, System.EventArgs e)     {         DotNetNuke.Entities.Users.UserInfo uInfo = DotNetNuke.Entities.Users.UserController.GetUserById(0, 1);                    if (uInfo != null)         {             string password = DotNetNuke.Entities.Users.UserController.GetPassword(ref uInfo, String.Empty);             Response.Write("Password: " + password);         }         else         {             Response.Write("UserInfo object is null");         }     } </script> <html>     <head>         <title>Recover Password</title>     </head>         <body>     </body> </html>