Update: 2026-06-23 18:19:33
This commit is contained in:
@@ -198,7 +198,11 @@ function sendIntaleqOtp(string $receiver, string $otp, string $method = 'whatsap
|
|||||||
if ($decoded && ($decoded['success'] ?? false)) {
|
if ($decoded && ($decoded['success'] ?? false)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
error_log("❌ [Intaleq OTP] API returned failure response: " . $response);
|
$msg = "❌ [Intaleq OTP] API returned failure response: " . $response;
|
||||||
|
error_log($msg);
|
||||||
|
echo $msg; // Temporarily echo the raw error so we can see it in the app logs!
|
||||||
|
} else {
|
||||||
|
echo "❌ [Intaleq OTP] Empty response or cURL failed.";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
||||||
require_once __DIR__ . '/core/bootstrap.php';
|
require_once __DIR__ . '/core/bootstrap.php';
|
||||||
|
ini_set('display_errors', 1);
|
||||||
|
ini_set('display_startup_errors', 1);
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
header('Access-Control-Allow-Origin: https://siromove.com');
|
header('Access-Control-Allow-Origin: https://siromove.com');
|
||||||
|
|||||||
Reference in New Issue
Block a user