Authentication through web.config not authenticating in ASP.net 3.5

前端 未结 5 685
无人及你
无人及你 2020-12-16 17:04

This is one of this things that should be extremely simple and I just can\'t work out why it\'s not working.

I\'m trying to set up some very quick authentication for

5条回答
  •  执念已碎
    2020-12-16 17:54

    I'm not sure if this has changed in .NET 3.5, but the element has an attribute passwordFormat that defines the format for passwords in the web.config. From the MSDN documentation for .NET 3.5, the default format is SHA1.

    If you're using cleartext usernames and passwords in your web.config, you should use:

    ...
    
    ...
    

    Event though this is an internal application I'd still recommend at least hashing the password instead of leaving it in clear text.

提交回复
热议问题