Skip to content

Commit

Permalink
[BUGFIX] Remove unused if in PasswordHashing
Browse files Browse the repository at this point in the history
A useless if can be dropped since the deprecation
removals.

Resolves: #87208
Releases: master
Change-Id: Ib664a3d50fb4aeb7956606b054e46a0be84d1e92
Reviewed-on: https://review.typo3.org/59206
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
  • Loading branch information
lolli42 authored and maddy2101 committed Dec 19, 2018
1 parent c4968cf commit a69d474
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit a69d474

Please sign in to comment.