🐛(dimail) fix broken auth while resetting passwords
Dimail client's "reset password" method was using basic auth while dimail expects a token for this endpoint. Fixed it.
This commit is contained in:
committed by
Marie
parent
83bec33bdb
commit
fce9b1e490
@@ -616,7 +616,7 @@ class DimailAPIClient:
|
||||
try:
|
||||
response = session.post(
|
||||
f"{self.API_URL}/domains/{mailbox.domain.name}/mailboxes/{mailbox.local_part}/reset_password/",
|
||||
headers={"Authorization": f"Basic {self.API_CREDENTIALS}"},
|
||||
headers=self.get_headers(),
|
||||
verify=True,
|
||||
timeout=self.API_TIMEOUT,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user