Skip to content

Commit

Permalink
T-005: Adjust password generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-ghenov committed Mar 4, 2024
1 parent b19a831 commit e05b9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function sendRequest(
// Generate the timestamp in the specified format and ensure it's in GMT/UTC
$timestamp = gmdate('Y-m-d\TH:i:s');
$authKey = $this->generateAuthHmac($timestamp, $this->apiSecurityKey);
$hashedPassword = $this->generateAuthHmac($this->apiPassword, $authKey);
$hashedPassword = $this->generateAuthHmac(hash('sha256', $this->apiPassword), $authKey);

// Add authentication parameters to the request data.
$data = array_merge([
Expand Down

0 comments on commit e05b9e1

Please sign in to comment.