Skip to content

Commit

Permalink
Merge pull request #9 from gunet/scrypt-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
emlun authored Aug 24, 2023
2 parents 5017c5e + 6098aa2 commit b60e672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async function getUserByCredentials(username: string, password: string): Promise
}

} else {
// User isn't migrated to sha256 yet - fall back to sha256
// User isn't migrated to scrypt yet - fall back to sha256
const sha256Hash = crypto.createHash('sha256').update(password).digest('base64');

if (user.passwordHash === sha256Hash) {
Expand Down

0 comments on commit b60e672

Please sign in to comment.