Password fixes

This commit is contained in:
Juan Ferrer 2019-07-02 11:42:39 +02:00
parent b1c5bb1b6a
commit 7673a21baf
3 changed files with 4 additions and 4 deletions

2
debian/changelog vendored
View File

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

View File

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

View File

@ -132,7 +132,7 @@ abstract class Service {
$passwordHash = $db->getValue(
'SELECT bcryptPassword FROM account.user
WHERE `name` = #',
WHERE active AND `name` = #',
[$user]
);
@ -143,7 +143,7 @@ abstract class Service {
if (empty($passwordHash)) {
$md5Password = $db->getValue(
'SELECT `password` FROM account.user
WHERE `name` = #',
WHERE active AND `name` = #',
[$user]
);