From 86be0278a6f9249ad9b07f12e8bbe5804f3773b9 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 11 Jul 2023 11:35:15 +0200 Subject: [PATCH] refs #5863 add echos in login --- web/service.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/service.php b/web/service.php index d1420093..d18bd6b8 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']; + error_log("Start login logs\n"); + error_log("_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(); } + + error_log("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 + error_log("SESSION_Access: " . $_SESSION['access'] . " _userChanged: " . $userChanged . " _SESSION_User: " . $_SESSION['user'] . "EndLine\n"); + error_log("End login logs\n"); if (isset($_SESSION['access']) && $userChanged) $db->query( 'CALL visitUser_new(#, #)',