Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Changing password using membership provider

Changing password using membership provider

Scheduled Pinned Locked Moved ASP.NET
questionsysadminhelplounge
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shahdat Hosain
    wrote on last edited by
    #1

    Im working with a social network. To change password I use following code

    MembershipUser usr=Membership.GetUser(username);
    usr.ChangePassword(usr.GetPassword("no answer"), newpassword);

    But following error occur: Current membership provider is not configure to allow users to retrieve and reset their password. How can I configure?

    shahdat

    C A D 3 Replies Last reply
    0
    • S Shahdat Hosain

      Im working with a social network. To change password I use following code

      MembershipUser usr=Membership.GetUser(username);
      usr.ChangePassword(usr.GetPassword("no answer"), newpassword);

      But following error occur: Current membership provider is not configure to allow users to retrieve and reset their password. How can I configure?

      shahdat

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What have you tried ? Did you google the error message ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      S 1 Reply Last reply
      0
      • S Shahdat Hosain

        Im working with a social network. To change password I use following code

        MembershipUser usr=Membership.GetUser(username);
        usr.ChangePassword(usr.GetPassword("no answer"), newpassword);

        But following error occur: Current membership provider is not configure to allow users to retrieve and reset their password. How can I configure?

        shahdat

        A Offline
        A Offline
        AprNgp
        wrote on last edited by
        #3

        How about ChangePassword control ... ?

        Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)

        1 Reply Last reply
        0
        • C Christian Graus

          What have you tried ? Did you google the error message ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          S Offline
          S Offline
          Shahdat Hosain
          wrote on last edited by
          #4

          It a error from .NET compiler. Im web developer of a social network site. I want to develop how a user reset their password when he forgot it. I require method to change password.

          shahdat

          1 Reply Last reply
          0
          • S Shahdat Hosain

            Im working with a social network. To change password I use following code

            MembershipUser usr=Membership.GetUser(username);
            usr.ChangePassword(usr.GetPassword("no answer"), newpassword);

            But following error occur: Current membership provider is not configure to allow users to retrieve and reset their password. How can I configure?

            shahdat

            D Offline
            D Offline
            droth17
            wrote on last edited by
            #5

            You have to have the membership provider configured to allow for reseting of password. This will be in the web.config file under 'membership' you need to make sure your provider is configured with enablePasswordReset="true"

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups