Skip to content

Commit eec4baa

Browse files
committed
added sync functions to the right place
1 parent 5824844 commit eec4baa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

server.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ bcrypt.hash(myPlaintextPassword, saltRounds, (err, hash) => {
2222

2323
//END_ASYNC
2424

25-
var hash = bcrypt.hashSync(myPlaintextPassword, saltRounds);
26-
console.log(hash);
27-
var result = bcrypt.compareSync(myPlaintextPassword, hash);
28-
console.log(result);
29-
3025

3126
//START_SYNC
3227

28+
var hash = bcrypt.hashSync(myPlaintextPassword, saltRounds);
29+
console.log(hash);
3330

31+
var result = bcrypt.compareSync(myPlaintextPassword, hash);
32+
console.log(result);
3433

3534
//END_SYNC
3635

0 commit comments

Comments
 (0)