From 8fa131ac74186c749d143c3397d5666ab79a2730 Mon Sep 17 00:00:00 2001 From: clement callaert Date: Sat, 4 Nov 2023 19:52:30 +0100 Subject: [PATCH] mongodb --- routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/auth.js b/routes/auth.js index a6e5e26..fb64110 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -62,7 +62,7 @@ router.post('/creer-compte', async function (req, res) { console.log("here2") const existingUser = await db.getDb().collection('users').findOne({email: enteredEmail}) || db.getDb().collection('users').findOne({nom_dutilisateur: enteredNom_dutilisateur}); - console.log(existingUser) + console.log(existingUser.toArray()) if (existingUser) { console.log("here4") req.session.inputData = {