Umbraco: How to get member login password in plain text or without hashed format by c#.

Basically umbraco keep member user password in hashed format when we retrieve password it give in hashed format which is not human readable format. So point is how we will get member user password in plain text format for doing this you must have to do changes in umbraco web config file. See below format I am using for getting plain text password.

<pre><membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
        <clear />
        <add name="UmbracoMembershipProvider"
			defaultMemberTypeAlias="Another Type"
			passwordFormat="clear" />

C# Code for retrieve password:

     string userPassword = string.Empty;
     string userFullName = string.Empty;
     // Get member by user name
     Member userInfo = null;
     userInfo = Member.GetMemberFromLoginName("");
     // Make sure user exist by given email
     if (userInfo  != null)
         // Get Password
         userPassword = userInfo.Password;
         userFullName = userInfo.Text;

Page keyword: How to let member retrieve login and password, umbraco hashed passwordFormat, Membership user password, get member password in umbraco, retrieve member password, membership provider, User with hashed password in umbraco


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s