Skip to content

Instantly share code, notes, and snippets.

@devfred
Forked from jsheely/file1.cs
Created April 24, 2013 15:22
Show Gist options
  • Save devfred/5452959 to your computer and use it in GitHub Desktop.
Save devfred/5452959 to your computer and use it in GitHub Desktop.
<%@ 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