We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326027d commit 08150cbCopy full SHA for 08150cb
server.js
@@ -11,11 +11,11 @@ const bcrypt = require('bcrypt');
11
12
//START_ASYNC -do not remove notes, place code between correct pair of notes.
13
14
-bcrypt.hash(myPlaintextPassword, saltRounds, (error, hash) => {
+bcrypt.hash(myPlaintextPassword, saltRounds, (err, hash) => {
15
console.log(hash);
16
17
- bcrypt.compare(myPlaintextPassword, hash, (error, response) => {
18
- console.log(response);
+ bcrypt.compare(myPlaintextPassword, hash, (err, res) => {
+ console.log(res);
19
});
20
21
0 commit comments