How can I do to remove answer and question of security the registration page?
-
Tuesday, August 24, 2010 4:14 PM
Hi everybody
I'm trying to create a user but I get the following message "Please enter a different security question".
How can I do to remove answer and question of security the registration page?How can I do to remove the previous message?
could you please help me?
Best regards
Johana
- Edited by johana84 Tuesday, August 24, 2010 4:20 PM change
All Replies
-
Tuesday, August 24, 2010 11:44 PM
Set a default value for Q and A :)
follow me on twitter @GaelDuhamel or check out my blogs http://www.gaelduhamel.fr http://www.gaelduhamel.com- Proposed As Answer by Gael DuhamelMVP Tuesday, August 24, 2010 11:44 PM
-
Wednesday, August 25, 2010 2:01 AM
Johana,
First, normally you would be able to set the proper attributes in the web.config file. Something like this:
<membership defaultProvider="UpmProvider"><br/> <providers><br/> <add name="UpmProvider" type="Microsoft.CommerceServer.Runtime.Profiles.UpmMembershipProvider" requiresQuestionAndAnswer="false" /><br/> </providers><br/> </membership>
Unfortunately for you, the Commerce Server provider ignores this settings if the profile definition has these properties.
Look under the user object profile definition in the Commerce Server manager and you will see both GeneralInfo.password_question and GeneralInfo.password_answer.
If both of these exist (they could be required or not, it doesnt matter) then the provider will make them required.
Now, the other part to this is that it sounds like you might be using the starter site controls, you would also have to modify the register/login control to remove the question/answer fields.
Hope this helps.
Good luck!
Victor O. Castro - Blog - Twitter: @vcastro - Work: Commerce Generation - LinkedIn- Proposed As Answer by Victor O. CastroMVP Wednesday, August 25, 2010 2:01 AM
-
Monday, September 06, 2010 3:36 PM
Hi Victor
I have the following in my web config file:
<membership defaultProvider="UpmProvider"> <providers> <add name="UpmProvider" type="Microsoft.CommerceServer.Runtime.Profiles.UpmMembershipProvider" requiresQuestionAndAnswer="false" enablePasswordReset="true"/> </providers> </membership>
Then I deleted from the file UserObjectProfile.cs the following: GeneralInfo.password_question and GeneralInfo.password_answer.
<div> <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" meta:resourceKey="QuestionLabel" /> <asp:TextBox ID="Question" runat="server" CssClass="TextBox" ></asp:TextBox> </div> <div> <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" meta:resourceKey="AnswerLabel" /> <asp:TextBox ID="Answer" runat="server" CssClass="TextBox" ></asp:TextBox> </div>
But when I delete the followings fields from the file Register.aspx it is generated the following error:
"NewUserForm: 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. "
could you please help me?
Best regards
Johana

