diff --git a/backend/auth/passenger/loginUsingCredentialsWithoutGoogle.php b/backend/auth/passenger/loginUsingCredentialsWithoutGoogle.php index ec665bf9..536aaad3 100644 --- a/backend/auth/passenger/loginUsingCredentialsWithoutGoogle.php +++ b/backend/auth/passenger/loginUsingCredentialsWithoutGoogle.php @@ -2,7 +2,7 @@ // loginUsingCredentialsWithoutGooglePassenger.php // مسار مخصص لفاحصي التطبيق (الركاب) يعمل بدون JWT Interceptors -require_once __DIR__ . '/../core/bootstrap.php'; +require_once __DIR__ . '/../../core/bootstrap.php'; $email = filterRequest("email"); $password = filterRequest("password"); @@ -159,11 +159,12 @@ try { ]); } -} catch (Exception $e) { - error_log("Error in loginUsingCredentialsWithoutGooglePassenger: " . $e->getMessage()); +} catch (Throwable $e) { + error_log("Error in loginUsingCredentialsWithoutGooglePassenger: " . $e->getMessage() . " in " . $e->getFile() . ":" . $e->getLine()); + http_response_code(500); echo json_encode([ "status" => "failure", - "message" => "Server error" + "message" => "Server error: " . $e->getMessage() . " in " . basename($e->getFile()) . " on line " . $e->getLine() ]); } exit(); diff --git a/siro_rider/lib/controller/auth/login_controller.dart b/siro_rider/lib/controller/auth/login_controller.dart index 0e1fd888..3c243b88 100644 --- a/siro_rider/lib/controller/auth/login_controller.dart +++ b/siro_rider/lib/controller/auth/login_controller.dart @@ -481,6 +481,7 @@ class LoginController extends GetxController { 'fingerPrint': fingerPrint, '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( Uri.parse(AppLink.loginUsingCredentialsWithoutGooglePassenger),