From dfeea2d95a484bd78a718ae94d19c9793ac03b8f Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 24 Jun 2026 16:15:01 +0300 Subject: [PATCH] Update: 2026-06-24 16:15:00 --- backend/auth/otp/providers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index c16340b..de81265 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -181,7 +181,7 @@ function sendNabehOtp(string $receiver, string $otp, string $method = '', string if ($response) { $decoded = json_decode($response, true); - if ($decoded && ($decoded['success'] ?? false)) { + if ($decoded && (($decoded['success'] ?? false) || ($decoded['status'] ?? '') === 'success')) { return true; } $msg = "❌ [Nabeh OTP] API returned failure response: " . $response;