From 0351bffafc1dc345194093070b16b16d027605cb Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 21 Jul 2026 19:19:15 +0300 Subject: [PATCH] Update: 2026-07-21 19:19:15 --- backend/auth/otp/providers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index 6b6280f6..7e6e7a5d 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -139,8 +139,8 @@ function sendNabehOtp(string $receiver, string $otp, string $method = '', string // Strip symbols for Nabeh endpoint $phoneRaw = preg_replace('/\D+/', '', $receiver); - // Map method/type (Text OTP is the default now) - $type = ($method === 'image') ? 'image' : 'text'; + // Map method/type (Image OTP card is default for Nabeh) + $type = ($method === 'text') ? 'text' : (($method === 'voice') ? 'voice' : 'image'); $appName = 'سيرو رايدر'; if ($user_type === 'driver') {