Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ubongedem78 committed Apr 4, 2024
1 parent 4222be4 commit 5b308f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/auth.Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ async function updateUserPassword(email, data, otp) {
throw new BadRequestError("Invalid OTP");
}

const hashedPassword = await bcrypt.hash(data.password, 12);
const updatedUser = await user.update({ password: hashedPassword });
const updatedUser = await user.update({ passwordHash: data.password });
return updatedUser;
}

Expand Down

0 comments on commit 5b308f1

Please sign in to comment.