开发者

asp.net wrong password just logs me in

开发者 https://www.devze.com 2023-01-16 20:05 出处:网络
i have a simple website with asp.net membership authentication, so some reason which ever password i type for any user just logs me in. Whether i type fffffffff or 55开发者_开发百科555555 as the passw

i have a simple website with asp.net membership authentication, so some reason which ever password i type for any user just logs me in. Whether i type fffffffff or 55开发者_开发百科555555 as the password for any user, am just loggedin.

The wasn't behaving this way just 1 day back. Any ideas what could be wrong, or where i should start troubleshooting from?


Make sure you have:

<configuration>
  <appSettings/>
  <connectionStrings/>
  <system.web>
      <authorization>
        <deny users="?"/>
      </authorization>
  </system.web>
</configuration>

in your Web.config and not:

<allow users="*"/> or <allow users="?"/>

to ensure that you're not allowing anonymous access.


check the webconfig as see if you have the code to prevent anonymous users loggin in and to redirect them....

0

精彩评论

暂无评论...
验证码 换一张
取 消