Merge pull request 'refs #5863 remove echos' (!37) from 5863-visit_user3 into test
gitea/hedera-web/pipeline/head There was a failure building this commit Details

Reviewed-on: #37
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Javi Gallego 2023-07-10 07:23:01 +00:00
commit 1470e77572
1 changed files with 0 additions and 6 deletions

View File

@ -150,8 +150,6 @@ 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
@ -180,7 +178,6 @@ abstract class Service {
if (!$isActive)
throw new UserDisabledException();
}
echo "user: " . $user . "EndLine\n";
$db->query('CALL account.myUser_loginWithName(#)', [$user]);
$userChanged = !$anonymousUser
@ -189,9 +186,6 @@ 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(#, #)',