Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nate 143 posts 184 karma points
    Dec 01, 2010 @ 15:55
    Nate
    0

    requiresQuestionAndAnswer="false" isn't working

     

    I'm trying to write a wizard step to create a user.  It keeps telling me that i need a control to hold the security question/answer.  I have requestQuestionAndAnswer="false" in the web.config though.  Spinning my head on this one!

    Any ideas?

    <asp:CreateUserWizard ID="CreateUserWizard1"  ContinueDestinationPageUrl="/" OnContinueButtonClick="CreateUserWizard1_ContinueButtonClick" OnCreatedUser="CreateUserWizard1_CreatedUser" runat="server">
        <WizardSteps>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                <ContentTemplate>
                    <asp:TextBox ID="firstName" runat="server" />
                    <asp:TextBox ID="username" runat="server" />
                    <asp:TextBox ID="email" runat="server" />
                    <asp:TextBox ID="Password" runat="server" />
                </ContentTemplate>
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"></asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>

    CreateUserWizard1: CreateUserWizardStep.ContentTemplate does not contain an IEditableTextControl with ID Question for the security question, this is required if your membership provider requires a question and answer.

     

    <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="20">
          <providers>
            <clear />
            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false"  defaultMemberTypeAlias="User" passwordFormat="Hashed" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
     </membership>

  • Nate 143 posts 184 karma points
    Dec 01, 2010 @ 18:18
    Nate
    0

    Woah, stupid mistake.  I was working on a user control without this specified in the web.config.

    Everything should work when I put this above code together.

    darn...

Please Sign in or register to post replies

Write your reply to:

Draft