Skip to content

Commit 4f4c132

Browse files
committed
Fix use basic authentication
1 parent 5f7797f commit 4f4c132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

email/contact.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function createCustomer($baseUrl, $token, $name, $email): bool {
3535
curl_setopt($ch, CURLOPT_POST, 1);
3636
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
3737
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
38-
'Authorization: Bearer ' . $token,
38+
'Authorization: Basic ' . $token,
3939
'Content-Type: application/json',
4040
'Content-Length: ' . strlen($data)
4141
));
@@ -70,7 +70,7 @@ function createRequest($baseUrl, $token, $email, $message): bool {
7070
curl_setopt($ch, CURLOPT_POST, 1);
7171
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
7272
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
73-
'Authorization: Bearer ' . $token,
73+
'Authorization: Basic ' . $token,
7474
'Content-Type: application/json',
7575
'Content-Length: ' . strlen($data)
7676
));

0 commit comments

Comments
 (0)