diff --git a/typo3/sysext/core/Classes/Crypto/PasswordHashing/BlowfishPasswordHash.php b/typo3/sysext/core/Classes/Crypto/PasswordHashing/BlowfishPasswordHash.php index 5cd3c0846059..0f04c78cbae9 100644 --- a/typo3/sysext/core/Classes/Crypto/PasswordHashing/BlowfishPasswordHash.php +++ b/typo3/sysext/core/Classes/Crypto/PasswordHashing/BlowfishPasswordHash.php @@ -97,9 +97,7 @@ public function getHashedPassword(string $password) { $saltedPW = null; if (!empty($password)) { - if (empty($salt) || !$this->isValidSalt($salt)) { - $salt = $this->getGeneratedSalt(); - } + $salt = $this->getGeneratedSalt(); $saltedPW = crypt($password, $this->applySettingsToSalt($salt)); } return $saltedPW; diff --git a/typo3/sysext/core/Classes/Crypto/PasswordHashing/Md5PasswordHash.php b/typo3/sysext/core/Classes/Crypto/PasswordHashing/Md5PasswordHash.php index 0d94b90e3c0e..9c64e9ba8b58 100644 --- a/typo3/sysext/core/Classes/Crypto/PasswordHashing/Md5PasswordHash.php +++ b/typo3/sysext/core/Classes/Crypto/PasswordHashing/Md5PasswordHash.php @@ -69,9 +69,7 @@ public function getHashedPassword(string $password) { $saltedPW = null; if (!empty($password)) { - if (empty($salt) || !$this->isValidSalt($salt)) { - $salt = $this->getGeneratedSalt(); - } + $salt = $this->getGeneratedSalt(); $saltedPW = crypt($password, $this->applySettingsToSalt($salt)); } return $saltedPW; diff --git a/typo3/sysext/core/Classes/Crypto/PasswordHashing/PhpassPasswordHash.php b/typo3/sysext/core/Classes/Crypto/PasswordHashing/PhpassPasswordHash.php index 36016d0d9eed..e8205c6b44fb 100644 --- a/typo3/sysext/core/Classes/Crypto/PasswordHashing/PhpassPasswordHash.php +++ b/typo3/sysext/core/Classes/Crypto/PasswordHashing/PhpassPasswordHash.php @@ -97,9 +97,7 @@ public function getHashedPassword(string $password) { $saltedPW = null; if (!empty($password)) { - if (empty($salt) || !$this->isValidSalt($salt)) { - $salt = $this->getGeneratedSalt(); - } + $salt = $this->getGeneratedSalt(); $saltedPW = $this->cryptPassword($password, $this->applySettingsToSalt($salt)); } return $saltedPW;