Update: 2026-06-23 18:27:04

This commit is contained in:
Hamza-Ayed
2026-06-23 18:27:04 +03:00
parent 4043d939f2
commit e4f86c5efd
3 changed files with 17 additions and 3 deletions

View File

@@ -127,7 +127,7 @@ try {
$redisLocation = null; $redisLocation = null;
} }
} }
} catch (Exception $e) { } catch (Throwable $e) {
error_log("[REDIS] Connection failed: " . $e->getMessage()); error_log("[REDIS] Connection failed: " . $e->getMessage());
$redis = null; $redis = null;
$redisLocation = null; $redisLocation = null;

View File

@@ -85,7 +85,7 @@ try {
'expires_in' => 150, 'expires_in' => 150,
]); ]);
} catch (Exception $e) { } catch (Throwable $e) {
securityLog("LoginFirstTime Error", ['msg' => $e->getMessage()]); securityLog("LoginFirstTime Error", ['msg' => $e->getMessage()]);
jsonError('Server error', 500); jsonError('Server error: ' . $e->getMessage(), 500);
} }

14
backend/test_api.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
require_once __DIR__ . '/core/bootstrap.php';
$redis->flushAll();
$ch = curl_init('https://jordan-siro.intaleqapp.com/backend/loginFirstTime.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'id=new&password=unknown&aud=passenger-app:ios');
$response = curl_exec($ch);
curl_close($ch);
echo "RAW RESPONSE:\n";
echo $response;