In DotNetNuke it is not possible to extract the original password from the Database as the password is kept in an encrypted format. However, it can be retrieved programmatically. Even UserInfo class present in DotNetNuke can be used to retrieve login user firstName, lastname, email etc directly but cannot retrieve password. However, we can retrieve user password by creating an object of MembershipUser class present inside System.Web.Securitynamespace.
C# code to retrieve login and user password:
//Adding namespace -
//Creating object of MembershipUser class which will take username as parameter.
MembershipUser objUser = Membership.GetUser(UserInfo.Username);
//Storing password in a string variable
string strPassword = objUser.GetPassword();