Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Dnn 7.03.02 retrieve Host PasswordDnn 7.03.02 retrieve Host Password
Previous
 
Next
New Post
9/6/2014 2:36 AM
 
Hello All
Actually i forgot my host password of Dnn version 7.03 and i just want to write the host password on Home page though the code.
but i am trying the below code: it gives me error "you can not retrieve the password".

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");
}

then after i have change in Web.config




But it also doesn't work ,..........


Please Help.......
 
New Post
9/6/2014 9:58 AM
 
that's expected behaviour as since 7.0.0 the default password format is hashed passwords - hashing is a 1-way operation so passwords cannot be retrieved. I recommend reading http://www.dnnsoftware.com/wiki/page/... (alternatively you could write code to use UserController.ResetAndChangePassword which supports both encrypted and hashed passwords)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/8/2014 4:44 AM
 
you mean to say earlier version of Dnn before 7.0.0 we can retrieve Host password with this procedure which i have used for 7.03.02.
and i have only to reset the password ??
 
New Post
9/8/2014 12:14 PM
 
yes, prior to dnn 7.0 the installation default was encrypted passwords - encrypted passwords can be decrypted so UserController.GetPassword works -hashed passwords cannot be returned as hashing is a 1-way operation (and hence more secure)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/8/2014 12:52 PM
 
Visit twentytech.net for a solution to problems like this.

(Note that this requires placing a somewhat dangerous file in your installation's root directory, so you'll want to add it, use it, and then remove it!)



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Dnn 7.03.02 retrieve Host PasswordDnn 7.03.02 retrieve Host Password


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out