forked from verdnatura/hedera-web
Login bug fixed
This commit is contained in:
parent
7673a21baf
commit
1bbe94385b
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.406.56) stable; urgency=low
|
hedera-web (1.406.57) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue