From f638143e3ee22b56563f7acf9b663a1aff92cdad Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 10 Jul 2023 08:43:15 +0200 Subject: [PATCH] refs #5863 echos --- web/service.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/service.php b/web/service.php index eb858c43..cbdfcc90 100644 --- a/web/service.php +++ b/web/service.php @@ -150,7 +150,8 @@ abstract class Service { if (!empty($_GET['access_token'])) $token = $_GET['access_token']; - echo $_SERVER['HTTP_AUTHORIZATION'] . " _ " . $_GET['access_token'] . "\n"; + echo "Start login logs\n"; + echo "_SERVER_HTTP_AUTHORIZATION: " . $_SERVER['HTTP_AUTHORIZATION'] . " _GET_Access_token: " . $_GET['access_token'] . "EndLine\n"; if (isset($token)) { $userId = $db->getValue( 'SELECT userId FROM salix.AccessToken @@ -179,7 +180,7 @@ abstract class Service { if (!$isActive) throw new UserDisabledException(); } - echo $user . "\n"; + echo "user: " . $user . "EndLine\n"; $db->query('CALL account.myUser_loginWithName(#)', [$user]); $userChanged = !$anonymousUser @@ -188,7 +189,8 @@ abstract class Service { $_SESSION['user'] = $user; // Registering the user access - echo $_SESSION['access'] . " _ " . $userChanged . " _ " . $_SESSION['user'] . "\n"; + echo "SESSION_Access: " . $_SESSION['access'] . " _userChanged: " . $userChanged . " _SESSION_User: " . $_SESSION['user'] . "EndLine\n"; + echo "End login logs\n"; if (isset($_SESSION['access']) && $userChanged) $db->query(