Hash and Compare Passwords Synchronously

Tell us what’s happening:

Working on the Information Security with HelmetJS - Hash and Compare Passwords Synchronously lesson and am stuck. Everything shows in console.log as suggested, but when I submit the test I get an error “// running tests
Sync hash generated and correctly compared
// tests completed”

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36.

Challenge: undefined

Link to the challenge:


The only problem seems to be that You’re not writing the code between the comments:

// Here goes the code, even the bcrypt.compareSync must go here.

Oh! And You linked the wrong lesson :stuck_out_tongue:.

1 Like

I tried it once again here is the link. Thanks

1 Like

Thank you so much made the change of where the code was placed and that worked.

1 Like