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. How to prohibit repeated passwords in default membership?

How to prohibit repeated passwords in default membership?

Scheduled Pinned Locked Moved ASP.NET
asp-nettutorialquestion
4 Posts 2 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.
  • M Offline
    M Offline
    moazzamahmed
    wrote on last edited by
    #1

    hi all I've implemeneted microsofts default membership provider, everything works great. I need to restrict users from changing their password to a password they already used in the last x months. Does anyone know how the default membership provider can do this? If not, any ideas on how to implement it? we have passwords hashed, so we cant really store em outside of aspnet ourseleves. thanks in advance. moazzam

    N 1 Reply Last reply
    0
    • M moazzamahmed

      hi all I've implemeneted microsofts default membership provider, everything works great. I need to restrict users from changing their password to a password they already used in the last x months. Does anyone know how the default membership provider can do this? If not, any ideas on how to implement it? we have passwords hashed, so we cant really store em outside of aspnet ourseleves. thanks in advance. moazzam

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Ass far as I know you would have to extend the MemberShipProvider to add this feature


      only two letters away from being an asset

      M 1 Reply Last reply
      0
      • N Not Active

        Ass far as I know you would have to extend the MemberShipProvider to add this feature


        only two letters away from being an asset

        M Offline
        M Offline
        moazzamahmed
        wrote on last edited by
        #3

        but where do we save the passwords? and how do you compare them? they're hashed.

        N 1 Reply Last reply
        0
        • M moazzamahmed

          but where do we save the passwords? and how do you compare them? they're hashed.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You would of course need to save n number of previous password hashes to compare the new one against. Where to save them is up to you but a simple update trigget on the table could be used.


          only two letters away from being an asset

          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