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') {