From 4043d939f24d54a04920ddd56d9ee70e82881b0e Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 23 Jun 2026 18:21:54 +0300 Subject: [PATCH] Update: 2026-06-23 18:21:54 --- backend/auth/otp/providers.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index a6011bd..e1aa000 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -180,9 +180,12 @@ function sendIntaleqOtp(string $receiver, string $otp, string $method = 'whatsap return false; } + // Normalize receiver to start with + + $phoneWithPlus = (strpos($receiver, '+') === 0) ? $receiver : '+' . $receiver; + $apiUrl = 'https://otp.intaleqapp.com/api/request-otp.php'; $payload = [ - 'phone' => $receiver, + 'phone' => $phoneWithPlus, 'app_key' => $appKey, 'device_type' => 'android', 'method' => $method,