Login bug fixed

This commit is contained in:
Juan Ferrer 2019-07-02 13:43:52 +02:00
parent 7673a21baf
commit 1bbe94385b
3 changed files with 4 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.56) stable; urgency=low hedera-web (1.406.57) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.406.56", "version": "1.406.57",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

View File

@ -188,10 +188,10 @@ abstract class Service {
$user = $db->getValue('SELECT guestUser FROM config'); $user = $db->getValue('SELECT guestUser FROM config');
$anonymousUser = TRUE; $anonymousUser = TRUE;
} }
$db->query('CALL account.userLoginWithName(#)', [$user]);
} }
$db->query('CALL account.userLoginWithName(#)', [$user]);
$userChanged = !$anonymousUser $userChanged = !$anonymousUser
&&(empty($_SESSION['user']) || $_SESSION['user'] != $user); &&(empty($_SESSION['user']) || $_SESSION['user'] != $user);