From 4231365e4f6a8f23badae14e8615648a60485d77 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 10 Jul 2023 07:52:24 +0200 Subject: [PATCH] refs #5863 add echos --- web/service.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/service.php b/web/service.php index 97e19a4e..eb858c43 100644 --- a/web/service.php +++ b/web/service.php @@ -150,6 +150,7 @@ abstract class Service { if (!empty($_GET['access_token'])) $token = $_GET['access_token']; + echo $_SERVER['HTTP_AUTHORIZATION'] . " _ " . $_GET['access_token'] . "\n"; if (isset($token)) { $userId = $db->getValue( 'SELECT userId FROM salix.AccessToken @@ -178,7 +179,7 @@ abstract class Service { if (!$isActive) throw new UserDisabledException(); } - + echo $user . "\n"; $db->query('CALL account.myUser_loginWithName(#)', [$user]); $userChanged = !$anonymousUser @@ -187,6 +188,7 @@ abstract class Service { $_SESSION['user'] = $user; // Registering the user access + echo $_SESSION['access'] . " _ " . $userChanged . " _ " . $_SESSION['user'] . "\n"; if (isset($_SESSION['access']) && $userChanged) $db->query(