Update: 2026-06-23 18:27:04
This commit is contained in:
@@ -127,7 +127,7 @@ try {
|
||||
$redisLocation = null;
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
} catch (Throwable $e) {
|
||||
error_log("[REDIS] Connection failed: " . $e->getMessage());
|
||||
$redis = null;
|
||||
$redisLocation = null;
|
||||
|
||||
@@ -85,7 +85,7 @@ try {
|
||||
'expires_in' => 150,
|
||||
]);
|
||||
|
||||
} catch (Exception $e) {
|
||||
} catch (Throwable $e) {
|
||||
securityLog("LoginFirstTime Error", ['msg' => $e->getMessage()]);
|
||||
jsonError('Server error', 500);
|
||||
jsonError('Server error: ' . $e->getMessage(), 500);
|
||||
}
|
||||
14
backend/test_api.php
Normal file
14
backend/test_api.php
Normal 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;
|
||||
Reference in New Issue
Block a user