From 2e4bf784ecd2643a2d2bf549509d70a6e03d5d0c Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 24 Jun 2026 16:18:03 +0300 Subject: [PATCH] Update: 2026-06-24 16:18:03 --- backend/auth/otp/request.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/auth/otp/request.php b/backend/auth/otp/request.php index d212686..f136db2 100644 --- a/backend/auth/otp/request.php +++ b/backend/auth/otp/request.php @@ -99,12 +99,12 @@ switch (strtolower($country)) { case 'syria': // Syria uses Nabeh - $sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type); + $sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger'); break; case 'jordan': // Jordan uses Nabeh - $sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type); + $sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger'); break; default: @@ -112,7 +112,7 @@ switch (strtolower($country)) { $sentSuccessfully = sendKazumiSms($receiver, $otp); if (!$sentSuccessfully) { error_log("⚠️ [Default OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP."); - $sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type); + $sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger'); } break; }