diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index 54cbf9b..52e5f7c 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -131,15 +131,15 @@ function sendNabehOtp(string $receiver, string $otp, string $method = '', string // Strip symbols for Nabeh endpoint $phoneRaw = preg_replace('/\D+/', '', $receiver); - // Map method/type (Image OTP is the default and only media method allowed) - $type = 'image'; - if ($method === 'text') { + // Map method/type (Text OTP is the default now) + $type = 'text'; + if ($method === 'image') { + $type = 'image'; + } elseif ($method === 'text') { $type = 'text'; - } elseif ($method === 'image') { - $type = 'image'; } else { - // If no method specified or if 'voice' was requested, force default to 'image' - $type = 'image'; + // If no method specified or if 'voice' was requested, force default to 'text' + $type = 'text'; } $appName = 'سيرو رايدر';