MySQL Connector/Net |
MySQLMembershipProvider..::.MaxInvalidPasswordAttempts Property |
MySQLMembershipProvider Class Example See Also Send Feedback |
Gets the number of invalid password or password-answer attempts allowed
before the membership user is locked out.
Namespace:
MySql.Web.Security
Assembly:
MySql.Web (in MySql.Web.dll) Version: 6.2.2.0
Syntax
C# |
---|
public override int MaxInvalidPasswordAttempts { get; } |
Visual Basic (Declaration) |
---|
Public Overrides ReadOnly Property MaxInvalidPasswordAttempts As Integer |
Visual C++ |
---|
public: virtual property int MaxInvalidPasswordAttempts { int get () override; } |
Field Value
The number of invalid password or password-answer attempts allowed before the membership user is locked out.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>