diff options
-rw-r--r-- | lib/password.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/password.php b/lib/password.php index 27dabfd..20f2e51 100644 --- a/lib/password.php +++ b/lib/password.php @@ -124,8 +124,7 @@ if (!defined('PASSWORD_BCRYPT')) { } } } - $buffer = str_replace('+', '.', base64_encode($buffer)); - $salt = $buffer; + $salt = str_replace('+', '.', base64_encode($buffer)); } $salt = substr($salt, 0, $required_salt_len); @@ -171,9 +170,7 @@ if (!defined('PASSWORD_BCRYPT')) { } return $return; } -} -if (!function_exists('password_needs_rehash')) { /** * Determine if the password hash needs to be rehashed according to the options provided * |