Skip to content

Commit

Permalink
Fix use basic authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
leviem1 committed Dec 28, 2023
1 parent 5f7797f commit 4f4c132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions email/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function createCustomer($baseUrl, $token, $name, $email): bool {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer ' . $token,
'Authorization: Basic ' . $token,
'Content-Type: application/json',
'Content-Length: ' . strlen($data)
));
Expand Down Expand Up @@ -70,7 +70,7 @@ function createRequest($baseUrl, $token, $email, $message): bool {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer ' . $token,
'Authorization: Basic ' . $token,
'Content-Type: application/json',
'Content-Length: ' . strlen($data)
));
Expand Down

0 comments on commit 4f4c132

Please sign in to comment.