Note that there are some explanatory texts on larger screens.

plurals
  1. POChangePassword Control doesn't work
    text
    copied!<p>Im currently doing an application in .net using c# and I want to use the change password control.</p> <p>The problem is...I always get an error of "Password incorrect or New Password invalid. New Password length minimum: 1. Non-alphanumeric characters required: 0."</p> <p>Even if I supplied the correct parameters of the password and set the (minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0") in Mebership provider in my web.config.</p> <pre><code>&lt;asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" ChangePasswordButtonText="Change" ChangePasswordTitleText="Password change" ConfirmNewPasswordLabelText="Retype new password:" NewPasswordLabelText="New Password:"&gt; &lt;/asp:ChangePassword&gt; </code></pre> <p>i'm implementing my own MembershipProvider:</p> <pre><code>public class MyMembershipProvider : MembershipProvider { ... public override int MinRequiredNonAlphanumericCharacters { get { return 0; } } ... } </code></pre> <p>The web.config:</p> <pre><code>&lt;membership defaultProvider="MyMembershipProvider" userIsOnlineTimeWindow="15"&gt; &lt;providers&gt; &lt;add name="MyMembershipProvider" type="My.Security.BsAsMembershipProvider" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="MyApp" requiresUniqueEmail="true" passwordFormat="Clear" passwordStrengthRegularExpression="" minRequiredNonalphanumericCharacters="0" description="My custom membership provider" /&gt; &lt;/providers&gt; &lt;/membership&gt; </code></pre> <p>Any ideas? Thanks.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload