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;