mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-03 23:51:22 -04:00
Added a reset of failed_login_count when the user is activated.
Update user from the update-password api call (which resets the failed_login_count)
This commit is contained in:
@@ -152,6 +152,7 @@ class UserApiClient(NotifyAdminAPIClient):
|
||||
def activate_user(self, user):
|
||||
if user.state == 'pending':
|
||||
user.state = 'active'
|
||||
user._failed_login_count = 0
|
||||
return self.update_user(user)
|
||||
else:
|
||||
return user
|
||||
|
||||
Reference in New Issue
Block a user