From 3b2c2a86c6d92dc3a93b075037ba088f15e2cf7b Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 23 Jun 2026 18:44:45 +0300 Subject: [PATCH] Update: 2026-06-23 18:44:45 --- backend/auth/otp/request.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/auth/otp/request.php b/backend/auth/otp/request.php index 4b51778..3d62889 100644 --- a/backend/auth/otp/request.php +++ b/backend/auth/otp/request.php @@ -92,27 +92,27 @@ switch (strtolower($country)) { case 'egypt': $sentSuccessfully = sendKazumiSms($receiver, $otp); if (!$sentSuccessfully) { - error_log("⚠️ [Egypt OTP Failover] Kazumi SMS failed. Falling back to Intaleq OTP WhatsApp."); - $sentSuccessfully = sendIntaleqOtp($receiver, $otp, 'whatsapp'); + error_log("⚠️ [Egypt OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP."); + $sentSuccessfully = sendNabehOtp($receiver, $otp, 'text'); } break; case 'syria': - // Syria uses Intaleq app_key for whatsapp/sms - $sentSuccessfully = sendIntaleqOtp($receiver, $otp, $method ?: 'whatsapp'); + // Syria uses Nabeh + $sentSuccessfully = sendNabehOtp($receiver, $otp, 'text'); break; case 'jordan': - // Jordan uses Intaleq app_key for whatsapp/sms - $sentSuccessfully = sendIntaleqOtp($receiver, $otp, $method ?: 'whatsapp'); + // Jordan uses Nabeh + $sentSuccessfully = sendNabehOtp($receiver, $otp, 'text'); break; default: // Default fallback to Kazumi SMS $sentSuccessfully = sendKazumiSms($receiver, $otp); if (!$sentSuccessfully) { - error_log("⚠️ [Default OTP Failover] Kazumi SMS failed. Falling back to Intaleq OTP WhatsApp."); - $sentSuccessfully = sendIntaleqOtp($receiver, $otp, 'whatsapp'); + error_log("⚠️ [Default OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP."); + $sentSuccessfully = sendNabehOtp($receiver, $otp, 'text'); } break; }