Home > .Net > The password-answer supplied is invalid. Create User using CreateUserWizard without entering Security Question and Answer fields

The password-answer supplied is invalid. Create User using CreateUserWizard without entering Security Question and Answer fields

I need to create user using CreateUserWizard of ASP.Net Membership. By default Security Question and Answer fields are mandatory when you drag and drop the wizard. I need to create user without these fields. For this you need to set “requiresQuestionAndAnswer” flag to false in web.config membership provider setting area. After that you can remove Security Question and Answer fields from aspx  page. Below is the sample code of my web.config.

<membership defaultProvider=”CustomizedProvider”>

<providers>

<add name=”CustomizedProvider” type=”System.Web.Security.SqlMembershipProvider”

connectionStringName=”DinnerINN”

applicationName=”DinnerINN”

minRequiredPasswordLength=”5″

minRequiredNonalphanumericCharacters=”0″

requiresQuestionAndAnswer=”false”

maxInvalidPasswordAttempts=”5″ />

</providers>

</membership>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

TOP