mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Merge pull request #4150 from alphagov/pass-admin-url-reset-password
Pass admin URL to API when resetting password
This commit is contained in:
@@ -176,7 +176,10 @@ class UserApiClient(NotifyAdminAPIClient):
|
||||
|
||||
def send_reset_password_url(self, email_address, next_string=None):
|
||||
endpoint = '/user/reset-password'
|
||||
data = {'email': email_address}
|
||||
data = {
|
||||
'email': email_address,
|
||||
'admin_base_url': self.admin_url,
|
||||
}
|
||||
if next_string:
|
||||
data['next'] = next_string
|
||||
self.post(endpoint, data=data)
|
||||
|
||||
Reference in New Issue
Block a user