Skip to content

Commit

Permalink
Merge 73f4cbd into ad8321d
Browse files Browse the repository at this point in the history
  • Loading branch information
nettapper committed Nov 28, 2016
2 parents ad8321d + 73f4cbd commit d648c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -20,13 +20,13 @@ Encapsulates methods used to hash and verify user credentials for use in a passp
auth.hash('password', function(err, hashed) {
auth.verify('password', hashed, function(err, verified) {
console.log(verified); // True, passwords match
));
});
});

auth.hash('password', function(err, hashed) {
auth.verify('password2', hashed, function(err, verified) {
console.log(verified); // False, passwords don't match
));
});
});

**Attention** options.digestAlgorithm is set to 'SHA1' which is not considered too safe but was
Expand Down

0 comments on commit d648c08

Please sign in to comment.