diff --git a/lib/Service/Provisioning/Manager.php b/lib/Service/Provisioning/Manager.php index ddbb55abc9..4963e279b2 100644 --- a/lib/Service/Provisioning/Manager.php +++ b/lib/Service/Provisioning/Manager.php @@ -336,7 +336,7 @@ public function updatePassword(IUser $user, ?string $password, array $provisioni if ($provisioning->getMasterPasswordEnabled() === true && $provisioning->getMasterPassword() !== null) { $password = $provisioning->getMasterPassword(); $this->logger->debug('Password set to master password for ' . $user->getUID()); - } else if ($password === null) { + } elseif ($password === null) { $this->logger->debug('No password set for ' . $user->getUID()); return; }