From 59f446a824b0df41bb9bad2e4e81c7ce0129fe72 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 4 Nov 2022 15:15:16 +0100 Subject: [PATCH] Hotfix: restore user password --- debian/changelog | 2 +- package.json | 2 +- rest/core/restore-password.php | 1 - rest/core/set-password.php | 28 ---------------------------- 4 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 rest/core/set-password.php diff --git a/debian/changelog b/debian/changelog index 31108f60..173fad91 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.408.23) stable; urgency=low +hedera-web (1.408.24) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 4588a745..74a5618a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.408.23", + "version": "1.408.24", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/rest/core/restore-password.php b/rest/core/restore-password.php index 3d8812a8..7dec59df 100644 --- a/rest/core/restore-password.php +++ b/rest/core/restore-password.php @@ -14,7 +14,6 @@ class RestorePassword extends Vn\Web\JsonRequest { $db->query('CALL account.myUser_restorePassword(#, #)', [$verificationToken, $newPassword]); - Account::sync($db, $_SESSION['user'], $newPassword); return TRUE; } } diff --git a/rest/core/set-password.php b/rest/core/set-password.php deleted file mode 100644 index 99de91bd..00000000 --- a/rest/core/set-password.php +++ /dev/null @@ -1,28 +0,0 @@ -getValue( - 'SELECT id FROM account.user WHERE `name` = #', - [$setUser] - ); - $db->query('CALL account.user_setPassword(#, #)', - [$userId, $setPassword]); - Account::sync($db, $setUser, $setPassword); - return TRUE; - } -} -