Reputation: 5216
<add name="MyMembershipProvider"
type="BlueDDApp.Controllers.MyMembershipProvider"
connectionStringName="ApplicationServices"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!%,.;:])|(?=.*[a-z])(?=.*[0-9])(?=.*[!%,.;:])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!%,.;:])$"
passwordAttemptWindow="10"
applicationName="/" />
Is there any attribute like errorMessageMInPasswordLength="custom erroe message"
so that i can easily set custom message when entered password length<8
Used the Web Site Administration Tool, which provides a wizard-like interface for creating new users. (To start this tool, click ASP.NET Configuration on the Website menu in the Microsoft Visual Studio)
Upvotes: 3
Views: 800
Reputation: 11
Try changing the InvalidPasswordErrorMessage
in the CreateUserWizard
control.
Upvotes: 1
Reputation: 5209
You can enforce length with a regular expression in passwordStrengthRegularExpression
.
For example, alphabetic chars only between 8 and 16 chars in length : "^[a-zA-Z]{8,16}$"
Upvotes: 1