From 1bbe94385bcdca196927a4ee50ed48a87d7b2545 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 2 Jul 2019 13:43:52 +0200 Subject: [PATCH] Login bug fixed --- debian/changelog | 2 +- package.json | 2 +- web/service.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index e037644d..d5b895d2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.406.56) stable; urgency=low +hedera-web (1.406.57) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index d27b3d2d..1c5bd75d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.406.56", + "version": "1.406.57", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/web/service.php b/web/service.php index a9e45eb7..0aadb147 100644 --- a/web/service.php +++ b/web/service.php @@ -188,10 +188,10 @@ abstract class Service { $user = $db->getValue('SELECT guestUser FROM config'); $anonymousUser = TRUE; } - - $db->query('CALL account.userLoginWithName(#)', [$user]); } + $db->query('CALL account.userLoginWithName(#)', [$user]); + $userChanged = !$anonymousUser &&(empty($_SESSION['user']) || $_SESSION['user'] != $user);