From 81add700c6189ee7e1f6c8f7cc3ff36df79fff26 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 20 Feb 2023 04:01:08 +0000 Subject: [PATCH] fix error --- app/controllers/api/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 350a8062f2..d3deb02819 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1564,9 +1564,9 @@ App::patch('/v1/account/password') $user = $dbForProject->updateDocument('users', $user->getId(), $user ->setAttribute('password', $newPassword) ->setAttribute('passwordHistory', $history) - ->setAttribute('passwordUpdate', DateTime::now())); + ->setAttribute('passwordUpdate', DateTime::now())) ->setAttribute('hash', Auth::DEFAULT_ALGO) - ->setAttribute('hashOptions', Auth::DEFAULT_ALGO_OPTIONS) + ->setAttribute('hashOptions', Auth::DEFAULT_ALGO_OPTIONS); $events->setParam('userId', $user->getId());