Skip to content

Commit

Permalink
error password_hash() expects at least 2 arguments. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
notrinos committed Aug 21, 2022
1 parent 1b9903f commit 5de765b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/current_user.inc
Expand Up @@ -151,7 +151,7 @@ class current_user {
if ($user != false) {

$password = generate_password();
$hash = password_hash($password);
$hash = password_hash($password, PASSWORD_DEFAULT);

update_user_password($user['id'], $user['user_id'], $hash);

Expand Down

0 comments on commit 5de765b

Please sign in to comment.