PasswordFormat Property

MySQL Connector/Net

Gets a value indicating the format for storing passwords in the membership data store.

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public override MembershipPasswordFormat PasswordFormat { get; }
Visual Basic (Declaration)
Public Overrides ReadOnly Property PasswordFormat As MembershipPasswordFormat
Visual C++
public:
virtual property MembershipPasswordFormat PasswordFormat {
	MembershipPasswordFormat get () override;
}

Field Value

One of the MembershipPasswordFormat values indicating the format for storing passwords in the data store.

Examples

The following example shows the membership element being used in an applications web.config file.
CopyC#
<membership defaultProvider="MySQLMembershipProvider">
  <providers>
      <add name="MySqlMembershipProvider"
          type="MySql.Web.Security.MySQLMembershipProvider"
          connectionStringName="LocalMySqlServer"
          enablePasswordRetrieval="true"
          enablePasswordReset="false"
          requiresQuestionAndAnswer="true"
          requiresUniqueEmail="false" 
          passwordFormat="Encrypted"
          maxInvalidPasswordAttempts="3" 
          passwordAttemptWindow="20" 
          minRequiredNonAlphanumericCharacters="1" 
          minRequiredPasswordLength="11" 
          applicationName="MyApplication" />
  </providers>
</membership>

See Also