Asp.net 会员资格 - 帐户被锁定
我们使用 ASP.net 附带的标准 ASP.net 会员功能。
我们的会员数据库中的某些帐户将“锁定”标志设置为 true - 这种情况何时/如何发生?
We're using the standard ASP.net membership features that come with asp.net.
Certain accounts in our membership database have a "Locked Out" flag set to true - when/how does this happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在可配置的时间长度(passwordAttemptWindow,默认 = 10 分钟)内登录失败次数达到可配置的次数(maxInvalidPasswordAttempts,默认 = 5)后,帐户将被锁定。
请参阅此处了解与成员资格相关的配置属性
After a configurable number of failed logins (maxInvalidPasswordAttempts, default = 5) within a configurable length of time (passwordAttemptWindow, default = 10 minutes), the account will be locked out.
see here for membership related configuration properties
这 4 个人做了很好的工作,深入解释了 ASP.NET 成员资格控件,
基本上添加您的提供程序,然后按照您想要的方式设置设置
These 4 guys did a great job of explaining in depth the asp.net membership controls
basically add your provider and then set the setting the way you'd like them
当有人尝试使用错误密码登录 5 次(或“maxInvalidPasswordAttempts”设置为任何值)时,帐户将被锁定......
为避免将来发生这种情况,请更改 web.config
示例中的 maxInvalidPasswordAttempts 属性:
When someone try to login 5 times (or whatever "maxInvalidPasswordAttempts" is set to) with the wrong password the account gets locked out ...
to avoid this in the future change the attribute maxInvalidPasswordAttempts in the web.config
example :
帐户锁定是 SqlMembershipProvider 的一项功能,可防止密码猜测。
查看此页面,您可以看到 aspnet_Membership 表具有 IsLockedOut, LastLockoutDate、FailedPasswordAttemptCount、FailedPasswordAnswer-AttemptCount。通过查看此表和这些列,您应该能够确定谁登录失败、登录失败的时间以及失败的次数。
登录尝试次数的实际计数可以在 web.config 部分中设置。您可以在此处了解有关帐户锁定的更多信息。
Account locking is a feature of SqlMembershipProvider that provides a safeguard against password guessing.
Looking at this page you can see that the aspnet_Membership table has IsLockedOut, LastLockoutDate, FailedPasswordAttemptCount, FailedPasswordAnswer-AttemptCount. By reviewing this table and those columns you should be able to determin who is having a failed login, when they failed on their login, and how many times they failed.
The actual count for the number of login tries can be sest in the section of the web.config. You can read more about account locking here.