skip to Main Content

Mongodb – nodemon app crashed – waiting for file changes before starting can you help me?

my code is; ` router.post("/login", async (req, res)=>{ try { const user = await User.findOne({ email: req.body.email }); !user && res.status(401).json("Wrong password or username !"); const bytes = CryptoJS.AES.decrypt(user.password, process.env.SECRET_KEY); const originalPassword= bytes.toString(CryptoJS.enc.Utf8); originalPassword !== req.body.password && res.status(401).json('Wrong Password or…

VIEW QUESTION
Back To Top
Search