Tell us what’s happening:
Test not passing. I have included the shorthand functions for the async hash generation AND the compare.
tried a fresh boilerplate.
tried starting a new gitpod several times.
server.js CODE :
‘use strict’;
const express = require(‘express’);
const bcrypt = require(‘bcrypt’);
const bodyParser = require(‘body-parser’);
const fccTesting = require(‘./freeCodeCamp/fcctesting.js’);
const app = express();
fccTesting(app);
const saltRounds = 12;
const myPlaintextPassword = ‘sUperpassw0rd!’;
const someOtherPlaintextPassword = ‘pass123’;
//START_ASYNC -do not remove notes, place code between correct pair of notes.
let hash = bcrypt.hashSync(myPlaintextPassword, saltRounds);
console.log(hash);
let result = bcrypt.compareSync(myPlaintextPassword, hash);
console.log(result);
//END_ASYNC
//START_SYNC
//END_SYNC
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(“Listening on port:”, PORT)
});
please dont be trelling me how I need to look in the forums. I searched bout 10 threads all of them suggest the same solution. this is probably another bug with gitpod and your whole system FCC guys… help me fix this or bruteforce a pass in the test. this is so confusing and frustrating, and you say you teach people ? teach people to do what ??? lose confidence ?
###Your project link(s)
solution: http://localhost:3000
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Challenge Information:
Information Security with HelmetJS - Hash and Compare Passwords Synchronously