Skip to content

Commit

Permalink
Correct rehash check to use actual hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjohnsson23 authored Oct 14, 2021
1 parent a73ee4e commit 07cb27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function user_valid_login ( $login, $password, $silent=false ) {
} else {
// New-Style Secure Password
$okay = password_verify ( $password, $expected_hash );
$rehash = password_needs_rehash ( $hash, PASSWORD_DEFAULT );
$rehash = password_needs_rehash ( $expected_hash, PASSWORD_DEFAULT );
}
// Upgrade insecurely stored passwords
if ( $okay && $rehash ){
Expand Down

0 comments on commit 07cb27f

Please sign in to comment.