如何在asp.net中查找密码 [英] How to loked password in asp.net

查看:73
本文介绍了如何在asp.net中查找密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有人,
我有ap.net登录控件,我想用asp.net在4次尝试中锁定密码.请帮助我.

请给我一个有关如何执行此操作的示例.

谢谢&问候,
Narasima

Hi to All,
I have ap.net login control,i want locked password with in 4 attempts using asp.net. please help me regarding this.

Please give me an example on how to do this.

Thanks & regards,
Narasima

推荐答案

确定,因此请记下某人尝试使用特定用户名登录的次数,如果该用户名大于4,则不允许该帐户要登录,如果小于4并且登录成功,则将登录尝试字段设置为0(零).

因此,您至少需要跟踪登录尝试和帐户锁定状态.如果您还想在24小时后自动重置,则还必须跟踪上次登录尝试的日期/时间.
OK so keep a count of how many times someone tries to login using a particular username, then if it is greater than 4 don''t allow that account to login, if it is less than 4 and a login is successful set the login attempt field to 0 (zero).

So you will need to track login attempts and account lock status at a minimum. If you also want an automatic reset after say 24 hours you will also have to track last login attempt date/time.



请为此举一个例子.
问候,
Narasima
Hi,
Please give an example fro this.
Regards,
Narasima


这篇关于如何在asp.net中查找密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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