Hashed or Encrypted passwords are not supported with auto-generated keys

后端 未结 2 499
执念已碎
执念已碎 2021-02-08 02:38

I have create a Membership provider and changed my web.config to


   
     

        
2条回答
  •  我寻月下人不归
    2021-02-08 03:39

    This is because you are hashing passwords but haven't set specific keys in your web.config. There's a "key generator" snippet in this MSDN article, run it twice and shove them in your web.config as:

    
        
    

    And that should sort you out. It's like this because otherwise you could take your membership database/app to another machine and none of your passwords would work, as the auto generated machine keys would be different :-)

提交回复
热议问题