Skip to content

Commit

Permalink
fix bcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 23, 2022
1 parent a0e32e1 commit dbb9b7f
Show file tree
Hide file tree
Showing 2 changed files with 839 additions and 263 deletions.
5 changes: 4 additions & 1 deletion app/models/user.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export async function verifyLogin(
return null;
}

const isValid = await bcrypt.verify(password, userWithPassword.password.hash);
const isValid = await bcrypt.compare(
password,
userWithPassword.password.hash
);

if (!isValid) {
return null;
Expand Down
Loading

0 comments on commit dbb9b7f

Please sign in to comment.