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. User Unlock

User Unlock

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
7 Posts 3 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.
  • J Offline
    J Offline
    jason_mf
    wrote on last edited by
    #1

    I created new user by membership. when user type the wrong password too many, this user will locked. I want to ask user to Unlock through submit PasswordAnswer for PasswordQuestion. But I can't validate the PasswordAnswer was submited. How to do ?

    E B 2 Replies Last reply
    0
    • J jason_mf

      I created new user by membership. when user type the wrong password too many, this user will locked. I want to ask user to Unlock through submit PasswordAnswer for PasswordQuestion. But I can't validate the PasswordAnswer was submited. How to do ?

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      jason_mf wrote:

      But I can't validate the PasswordAnswer was submited.

      What do you mean? Do you mean that they can enter any password and it accepts it or if you enter the correct password it doesnt accept it?

      We are not a Code Charity

      J 1 Reply Last reply
      0
      • J jason_mf

        I created new user by membership. when user type the wrong password too many, this user will locked. I want to ask user to Unlock through submit PasswordAnswer for PasswordQuestion. But I can't validate the PasswordAnswer was submited. How to do ?

        B Offline
        B Offline
        boy pockets
        wrote on last edited by
        #3

        I don't really understand your question, but maybe this is the answer you are looking for: Hook into the OnAuthenticate Event: protected void login_Authenticate(object sender, AuthenticateEventArgs e) from this method you can tell if the user was successful in authenticating. ie. e.Authenticated

        J 1 Reply Last reply
        0
        • B boy pockets

          I don't really understand your question, but maybe this is the answer you are looking for: Hook into the OnAuthenticate Event: protected void login_Authenticate(object sender, AuthenticateEventArgs e) from this method you can tell if the user was successful in authenticating. ie. e.Authenticated

          J Offline
          J Offline
          jason_mf
          wrote on last edited by
          #4

          Membership DataTable In aspnetdb DataBase. It has a IsLockedOut field. when user enter the wrong password too many times, IsLockedOut will be update to True(Lockout account).Now user login will faild, Regardless passwords right or wrong. Then, I want to offer user a wizard for unlock account(update IsLockedOut from true to false). So I need to compare the same as PasswordAnswer user submited and PasswordAnswer in DataBase. But Membership does not provide method for get PasswordAnswer. And PasswordAnswer is encrypted. How can I provide this wizard for unlock account.

          E 1 Reply Last reply
          0
          • E eyeseetee

            jason_mf wrote:

            But I can't validate the PasswordAnswer was submited.

            What do you mean? Do you mean that they can enter any password and it accepts it or if you enter the correct password it doesnt accept it?

            We are not a Code Charity

            J Offline
            J Offline
            jason_mf
            wrote on last edited by
            #5

            Membership DataTable In aspnetdb DataBase. It has a IsLockedOut field. when user enter the wrong password too many times, IsLockedOut will be update to True(Lockout account).Now user login will faild, Regardless passwords right or wrong. Then, I want to offer user a wizard for unlock account(update IsLockedOut from true to false). So I need to compare the same as PasswordAnswer user submited and PasswordAnswer in DataBase. But Membership does not provide method for get PasswordAnswer. And PasswordAnswer is encrypted. How can I provide this wizard for unlock account.

            1 Reply Last reply
            0
            • J jason_mf

              Membership DataTable In aspnetdb DataBase. It has a IsLockedOut field. when user enter the wrong password too many times, IsLockedOut will be update to True(Lockout account).Now user login will faild, Regardless passwords right or wrong. Then, I want to offer user a wizard for unlock account(update IsLockedOut from true to false). So I need to compare the same as PasswordAnswer user submited and PasswordAnswer in DataBase. But Membership does not provide method for get PasswordAnswer. And PasswordAnswer is encrypted. How can I provide this wizard for unlock account.

              E Offline
              E Offline
              eyeseetee
              wrote on last edited by
              #6

              check this out: http://msdn.microsoft.com/en-us/library/ms998347.aspx

              We are not a Code Charity

              B 1 Reply Last reply
              0
              • E eyeseetee

                check this out: http://msdn.microsoft.com/en-us/library/ms998347.aspx

                We are not a Code Charity

                B Offline
                B Offline
                boy pockets
                wrote on last edited by
                #7

                *nods* - that would be my suggestion too.

                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