Solved

MembershipProvider Password Recovery and ChangePassword not working

Posted on 2014-12-09
7
50 Views
Last Modified: 2015-11-30
I am new to using asp.net Membership Provider.  I have used the CreatedUserWizard in an app with success.  However, I cannot get the PasswordRecovery and ChangePassword controls to work.  I get the message that the attempt failed.  I have the proper settings in the web.config to allow change and recovery.  I don't know how to begin to debug this.

Thanks for your input.

McLeanIS
0
Comment
Question by:McLeanIS
  • 4
  • 3
7 Comments
 
LVL 7

Expert Comment

by:Utkarsh Kulkarni
ID: 40512902
Can you share portion of web.config that have settings for this?
0
 

Author Comment

by:McLeanIS
ID: 40522055
Here is the code:

<authentication mode="Forms">
      <forms loginUrl="Login.aspx" timeout="30"/>
    </authentication>
    <authorization>
      <allow users="*"/>
      <deny users="*"/>
    </authorization>
    <membership defaultProvider="SqlMembershipProvider">
      <providers>
        <clear/>
        <add name="SqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="Membership" enablePasswordRetrieval="true" maxInvalidPasswordAttempts="14" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Encrypted" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" description="Stores and retrieves membership data from SQL Server" applicationName="SEIOnline"/>
      </providers>
    </membership>
    <roleManager enabled="true">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" connectionStringName="SEIConnectionString" applicationName="SEIOnline" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      </providers>
    </roleManager>
    <compilation debug="true">

Open in new window

0
 
LVL 7

Assisted Solution

by:Utkarsh Kulkarni
Utkarsh Kulkarni earned 500 total points
ID: 40537425
The autherization tag consist both entries for "*" (Allow & Deny).
What exactly you need there?
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:McLeanIS
ID: 40545561
Deny - this is a site that requires logins.
0
 
LVL 7

Accepted Solution

by:
Utkarsh Kulkarni earned 500 total points
ID: 40546360
You have to add SMTP details in web.config file.
You can refer this URL for more details Recover forgot password using passwordrecovery control in asp.net membership
0
 

Author Comment

by:McLeanIS
ID: 40575285
Thank you for the reply.  I haven't had time to test it but I will try to soon.
0
 

Author Comment

by:McLeanIS
ID: 41339829
Due to a change in priorities, I can't test the given solution right now but thank you for your insight and assistance.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

806 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