SimpleMembershipProvider.GetPassword(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the password for the specified user account from the data source.
public override string GetPassword (string username, string answer);
override this.GetPassword : string * string -> string
Public Overrides Function GetPassword (username As String, answer As String) As String
Parameters
- username
- String
The user to retrieve the password for.
- answer
- String
The answer for the password security question.
Returns
The password for the specified user account.
Exceptions
EnablePasswordRetrieval is false.
answer
does not match the security answer for the user account and RequiresQuestionAndAnswer is true.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for