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