0

WebSecurity 类是否提供对密码失败次数的检查?如果是这样,这是在哪里配置的?

对于旧的成员资格提供程序,这可以在成员资格部分的 web.config 中进行配置。简单会员有类似的东西吗?

4

1 回答 1

2

我不这么认为,SimpleMembership 基本上没有任何逻辑来自动锁定帐户。

相反,您可以通过以下方式确定锁定状态:

WebSecurity 的 IsAccountLockedOut 方法:

public static bool IsAccountLockedOut(string userName, int allowedPasswordAttempts, int intervalInSeconds)
于 2012-08-31T00:34:53.260 回答