Skip to content

Commit a71e9f3

Browse files
committed
fixup! Do not update passwords if nothing changed
1 parent 1a98aac commit a71e9f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Authentication/Token/PublicKeyTokenProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public function updatePasswords(string $uid, string $password) {
411411
$publicKey = $t->getPublicKey();
412412
$encryptedPassword = $this->encryptPassword($password, $publicKey);
413413
if ($t->getPassword() !== $encryptedPassword) {
414-
$t->setPassword();
414+
$t->setPassword($encryptedPassword);
415415
$t->setPasswordInvalid(false);
416416
$this->updateToken($t);
417417
}

0 commit comments

Comments
 (0)