Update: 2026-07-12 17:22:40
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
// loginUsingCredentialsWithoutGooglePassenger.php
|
// loginUsingCredentialsWithoutGooglePassenger.php
|
||||||
// مسار مخصص لفاحصي التطبيق (الركاب) يعمل بدون JWT Interceptors
|
// مسار مخصص لفاحصي التطبيق (الركاب) يعمل بدون JWT Interceptors
|
||||||
|
|
||||||
require_once __DIR__ . '/../core/bootstrap.php';
|
require_once __DIR__ . '/../../core/bootstrap.php';
|
||||||
|
|
||||||
$email = filterRequest("email");
|
$email = filterRequest("email");
|
||||||
$password = filterRequest("password");
|
$password = filterRequest("password");
|
||||||
@@ -159,11 +159,12 @@ try {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Throwable $e) {
|
||||||
error_log("Error in loginUsingCredentialsWithoutGooglePassenger: " . $e->getMessage());
|
error_log("Error in loginUsingCredentialsWithoutGooglePassenger: " . $e->getMessage() . " in " . $e->getFile() . ":" . $e->getLine());
|
||||||
|
http_response_code(500);
|
||||||
echo json_encode([
|
echo json_encode([
|
||||||
"status" => "failure",
|
"status" => "failure",
|
||||||
"message" => "Server error"
|
"message" => "Server error: " . $e->getMessage() . " in " . basename($e->getFile()) . " on line " . $e->getLine()
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
@@ -481,6 +481,7 @@ class LoginController extends GetxController {
|
|||||||
'fingerPrint': fingerPrint,
|
'fingerPrint': fingerPrint,
|
||||||
'aud': '${AK.allowed}${Platform.isAndroid ? 'android' : 'ios'}',
|
'aud': '${AK.allowed}${Platform.isAndroid ? 'android' : 'ios'}',
|
||||||
};
|
};
|
||||||
|
Log.print("Tester Login Payload: email=${payload['email']}, password=${payload['password']}, aud=${payload['aud']}");
|
||||||
|
|
||||||
var response = await http.post(
|
var response = await http.post(
|
||||||
Uri.parse(AppLink.loginUsingCredentialsWithoutGooglePassenger),
|
Uri.parse(AppLink.loginUsingCredentialsWithoutGooglePassenger),
|
||||||
|
|||||||
Reference in New Issue
Block a user