mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Failed login count set to zero with password reset.
This commit is contained in:
@@ -108,6 +108,9 @@ class User(UserMixin):
|
||||
def failed_login_count(self, num):
|
||||
self._failed_login_count += num
|
||||
|
||||
def reset_failed_login_count(self):
|
||||
self._failed_login_count = 0
|
||||
|
||||
def is_locked(self):
|
||||
return self.failed_login_count >= self.max_failed_login_count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user