From 096f6a13a0e58acd3df92a8a845eb3bc33666cd6 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 21 Jul 2026 19:15:57 +0300 Subject: [PATCH] Update: 2026-07-21 19:15:57 --- backend/auth/otp/providers.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index fd28d636..6b6280f6 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -140,15 +140,7 @@ function sendNabehOtp(string $receiver, string $otp, string $method = '', string $phoneRaw = preg_replace('/\D+/', '', $receiver); // Map method/type (Text OTP is the default now) - $type = 'image'; - if ($method === 'image') { - $type = 'image'; - } elseif ($method === 'text') { - $type = 'text'; - } else { - // If no method specified or if 'voice' was requested, force default to 'text' - $type = 'image'; - } + $type = ($method === 'image') ? 'image' : 'text'; $appName = 'سيرو رايدر'; if ($user_type === 'driver') {