Solved

ASP.net Membership turn off security question

Posted on 2009-05-06
2
612 Views
Last Modified: 2013-11-07
Hello,
I've started learning Asp.net and have a question about membership.
How do I turn off security question option when you create account?
(Do I set up in machine.config or web.config???)
If I turn off, how do I recover password and what would be the options to recover? (type e-mail and send password via e-mail?)
Thank you
0
Comment
Question by:jtuttle99
2 Comments
 
LVL 9

Accepted Solution

by:
cdaly33 earned 500 total points
Comment Utility
In the web.config file for the membership section set the requiresQuestionAndAnswer to false.

Example:
<membership defaultProvider="MyMembership">
      <providers>
        <add
          name="MyMembership"
          type="System.Web.Security.SqlMembershipProvider"
          connectionStringName="con"
          requiresQuestionAndAnswer="false"
          requiresUniqueEmail="false" />
      </providers>
    </membership>

See:
http://www.codeverge.net/ng.asp-net-forum.security/remove-email-security-question-from-user-wizard
http://msdn.microsoft.com/en-us/library/system.web.security.membershipprovider.requiresquestionandanswer.aspx


0
 

Author Closing Comment

by:jtuttle99
Comment Utility
thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now