Gets the Current Password Information for the User

Namespace: DotNetNuke.Entities.Users
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string GetPassword(
	ref UserInfo user,
	string passwordAnswer
)
Visual Basic
Public Shared Function GetPassword ( 
	ByRef user As UserInfo,
	passwordAnswer As String
) As String

Parameters

user
Type: DotNetNuke.Entities.Users..::..UserInfo%
The user whose Password information we are retrieving.
passwordAnswer
Type: System..::..String
The answer to the "user's" password Question.

Return Value

returnsM:DotNetNuke.Entities.Users.UserController.GetPassword(DotNetNuke.Entities.Users.UserInfo@,System.String)

Remarks

This method will only return the password if the memberProvider supports and is using a password encryption method that supports decryption.

See Also