旧密码在asp.net会员密码更改后仍然工作 [英] Old password still working after password change in asp.net membership

查看:141
本文介绍了旧密码在asp.net会员密码更改后仍然工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ASP.NET成员资格认证的小网站,我只注意到一些东西在测试期间滑稽。我试图让用户更改自己的登录密码,他们希望的任何时候,我拖着更改密码控件到窗体,我为我的测试帐号改了密码,但是现在所有的密码都还在工作。

Am using ASP.NET membership authentication in a small website and i just noticed some thing funny during testing. Am trying to enable user to change their login password any time they wish, i dragged a change password control to the form, i changed the password for my test account, but now all passwords are still working.

我可以与旧的密码以及与该特定测试帐户的新密码登录。如果我与其他任何随机字符作为新密码尝试,我不能成功登录(其中确定)。但是,如果输入旧密码,我能够登录,如果我输入新的密码,我仍然能够登录,我发现这很奇怪。

I can login with the old password as well as the new password with this particular test account. If i try with any other random characters as the new password, i cant successfully login (which OK). But if type the old password, am able to login, if i type the new password, am still able to login, am finding this very strange.

推荐答案

我也收到了这个问题(它,因为你是在本地测试),即使你认为你已经清理浏览历史记录,请确保您清理缓存和饼干,有几次,然后再尝试一下。 (我甚至开不同的浏览器来检查)

I've also had this problem before (its because you are testing locally) even when you think you have cleaned browsing history, make sure you clean the cache and cookies, a few times, and then try it out. (I even open different browsers to check)

如果这不起作用(它将)尝试调试code,或者更好的使用SQL事件探查器,它会告诉你正在传递什么抓住了SQL调用,您可以尝试在SQL查询数据库,看看它是否返回任何东西。

If this doesn't work (which it will) try debugging your code, or better yet grabbing the sql call using SQL profiler, which will show what you are passing, and you can try the query in your sql database and see if it returns anything.

晴它,因为你可能在本地测试寿

Mostly its because you are probably testing locally tho

这篇关于旧密码在asp.net会员密码更改后仍然工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆