System.Web.Security.SqlMembershipProvider.EnablePasswordRetrieval Property

Gets a value indicating whether the SQL Server membership provider is configured to allow users to retrieve their passwords.

Syntax

public override bool EnablePasswordRetrieval { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the SqlMembershipProvider.PasswordFormat property is set to MembershipPasswordFormat.Hashed, a user will not be able to retrieve his or her existing password from the database. The MembershipPasswordFormat.Hashed password format provides one-way encoding of password values. Passwords are hashed with a randomly generated salt value and compared to values stored in the database for authentication. Hashed values cannot be unencoded to retrieve the original password value.

If the SqlMembershipProvider.PasswordFormat property is set to MembershipPasswordFormat.Hashed, and SqlMembershipProvider.EnablePasswordRetrieval is set to true, a System.Configuration.Provider.ProviderException is thrown when the provider is initialized.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0