diff --git a/Sean/server.js b/Sean/server.js index 4e13a02..ea3ead6 100644 --- a/Sean/server.js +++ b/Sean/server.js @@ -370,14 +370,15 @@ app.post( } // Hash the password - const hashedPassword = await bcrypt.hash(password, 10); + const saltRounds = 10; + const hashedPassword = await bcrypt.hash(password, saltRounds); // Start a transaction const t = await sequelize.transaction(); try { // Create the user - const newUser = await User.create({ + await User.create({ name, username, email, @@ -535,8 +536,9 @@ app.post("/forgot-password", async (req, res) => { }); } - // Hash the new password - const hashedPassword = await bcrypt.hash(sanitizedPassword, 10); + // Hash the new password + const saltRounds = 10; + const hashedPassword = await bcrypt.hash(sanitizedPassword, saltRounds); // Update user's password and clear reset token const updateQuery = { diff --git a/Sean/views/3.jpg b/Sean/views/3.jpg new file mode 100644 index 0000000..9e7cdf5 Binary files /dev/null and b/Sean/views/3.jpg differ diff --git a/Sean/views/home.ejs b/Sean/views/home.ejs index cff55e4..31a082a 100644 --- a/Sean/views/home.ejs +++ b/Sean/views/home.ejs @@ -7,69 +7,29 @@