From 5469a1b91b5858414f5e1da075d4a173efb3b32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 2 Nov 2026 14:15:38 +0100 Subject: [PATCH] fix(user_ldap): Fix password renewal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When moving from OC_User the parameters to setPassword were messed up. Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Controller/RenewPasswordController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Controller/RenewPasswordController.php b/apps/user_ldap/lib/Controller/RenewPasswordController.php index 60ccf6849b447..02820e8fa1d69 100644 --- a/apps/user_ldap/lib/Controller/RenewPasswordController.php +++ b/apps/user_ldap/lib/Controller/RenewPasswordController.php @@ -104,7 +104,7 @@ public function tryRenewPassword(string $user, string $oldPassword, ?string $new try { $userObject = $this->userManager->get($user); - if (!is_null($newPassword) && !is_null($userObject) && $userObject->setPassword($user, $newPassword)) { + if (!is_null($newPassword) && !is_null($userObject) && $userObject->setPassword($newPassword)) { $this->session->set('loginMessages', [ [], [$this->l10n->t('Please login with the new password')] ]);