diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index 8f5ba9c..a6011bd 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -198,7 +198,11 @@ function sendIntaleqOtp(string $receiver, string $otp, string $method = 'whatsap if ($decoded && ($decoded['success'] ?? false)) { return true; } - error_log("❌ [Intaleq OTP] API returned failure response: " . $response); + $msg = "❌ [Intaleq OTP] API returned failure response: " . $response; + error_log($msg); + echo $msg; // Temporarily echo the raw error so we can see it in the app logs! + } else { + echo "❌ [Intaleq OTP] Empty response or cURL failed."; } return false; } diff --git a/backend/loginFirstTime.php b/backend/loginFirstTime.php index a036ee4..972a051 100644 --- a/backend/loginFirstTime.php +++ b/backend/loginFirstTime.php @@ -4,6 +4,9 @@ // ============================================================ require_once __DIR__ . '/core/bootstrap.php'; +ini_set('display_errors', 1); +ini_set('display_startup_errors', 1); +error_reporting(E_ALL); header('Content-Type: application/json'); header('Access-Control-Allow-Origin: https://siromove.com');