diff --git a/debian/changelog b/debian/changelog index bcfe2a13..5852b86a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.406.50) stable; urgency=low +hedera-web (1.406.51) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 3bdbce90..1e0ff0cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.406.50", + "version": "1.406.51", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/rest/core/account.php b/rest/core/account.php index bcb2684b..69992142 100644 --- a/rest/core/account.php +++ b/rest/core/account.php @@ -27,10 +27,18 @@ class Account { self::sambaSync($db, $userName, $password); } - $db->query( - 'UPDATE account.user SET sync = TRUE WHERE name = #', + $userId = $db->getValue( + 'SELECT id FROM account.user WHERE `name` = #', [$userName] ); + $db->query( + 'CALL account.user_syncPassword(#, #)', + [$userId, $password] + ); + $db->query( + 'UPDATE account.user SET sync = TRUE WHERE id = #', + [$userId] + ); } /**