Created
February 17, 2012 06:21
-
-
Save tonidy/1851192 to your computer and use it in GitHub Desktop.
Recover password DNN
This file contains hidden or 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