diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index 5a611ec..8f5ba9c 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -183,14 +183,14 @@ function sendIntaleqOtp(string $receiver, string $otp, string $method = 'whatsap $apiUrl = 'https://otp.intaleqapp.com/api/request-otp.php'; $payload = [ 'phone' => $receiver, + 'app_key' => $appKey, 'device_type' => 'android', 'method' => $method, 'code' => $otp ]; $response = curlCall("POST", $apiUrl, json_encode($payload), [ - 'Content-Type: application/json', - "X-App-Key: $appKey" + 'Content-Type: application/json' ]); if ($response) {