Created
January 10, 2013 03:51
-
-
Save jsheely/4499286 to your computer and use it in GitHub Desktop.
Recover Your DotNetNuke Host Password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment