From 74752e718f1447567d1471a4ab881de38a5cd7ac Mon Sep 17 00:00:00 2001 From: clement callaert Date: Sat, 4 Nov 2023 19:48:02 +0100 Subject: [PATCH] mongodb --- routes/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/auth.js b/routes/auth.js index 2b85961..a6e5e26 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -64,6 +64,7 @@ router.post('/creer-compte', async function (req, res) { db.getDb().collection('users').findOne({nom_dutilisateur: enteredNom_dutilisateur}); console.log(existingUser) if (existingUser) { + console.log("here4") req.session.inputData = { hasError: true, message: 'User exists already!',