From cca16053da0d6ab89da8142eba60581b839a9a77 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 24 Jun 2026 23:11:20 +0300 Subject: [PATCH] Fix OTP verification success response payload and restore deterministic encryptData --- backend/auth/otp/providers.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 = 'سيرو رايدر';