mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 21:44:11 -04:00
Merge pull request #936 from alphagov/fix-forgot-password-empty-user-issue
Fix exception raised when a pending user attempts to complete 'forgotten password' flow
This commit is contained in:
@@ -122,5 +122,8 @@ class UserApiClient(BaseAPIClient):
|
||||
return True
|
||||
|
||||
def activate_user(self, user):
|
||||
user.state = 'active'
|
||||
return self.update_user(user)
|
||||
if user.state == 'pending':
|
||||
user.state = 'active'
|
||||
return self.update_user(user)
|
||||
else:
|
||||
return user
|
||||
|
||||
Reference in New Issue
Block a user