From 2af58510668169478efd7936d8d49d06064cd9ff Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 11 Jul 2023 09:18:34 +0200 Subject: [PATCH] refs #5863 add echos in login --- debian/changelog | 2 +- package.json | 2 +- web/service.php | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 99c20630..95a29c36 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (23.6.15) stable; urgency=low +hedera-web (23.6.16) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 70237436..cff2bfe8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "23.6.15", + "version": "23.6.16", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/web/service.php b/web/service.php index d1420093..bd4204d1 100644 --- a/web/service.php +++ b/web/service.php @@ -150,6 +150,9 @@ abstract class Service { if (!empty($_GET['access_token'])) $token = $_GET['access_token']; + 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 @@ -178,6 +181,8 @@ abstract class Service { if (!$isActive) throw new UserDisabledException(); } + + echo "user: " . $user . "EndLine\n"; $db->query('CALL account.myUser_loginWithName(#)', [$user]); $userChanged = !$anonymousUser @@ -186,6 +191,8 @@ abstract class Service { $_SESSION['user'] = $user; // Registering the user access + 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( 'CALL visitUser_new(#, #)',