From 90f46467dd8a198954c3f6a695d961fe2141125a Mon Sep 17 00:00:00 2001 From: clement callaert Date: Sat, 4 Nov 2023 18:17:57 +0100 Subject: [PATCH] mongodb --- routes/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/auth.js b/routes/auth.js index f9b1989..fe9bd18 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -29,7 +29,7 @@ router.post('/creer-compte', async function (req, res) { const enteredConfirmEmail = userData['confirm-email']; const enteredPassword = userData.password; const enteredConfirmPassword = userData['confirm-password']; - + console.log("here1") if (!enteredNom || !enteredPrenom || !enteredNom_dutilisateur || @@ -59,7 +59,7 @@ router.post('/creer-compte', async function (req, res) { }); return; } - + console.log("here2") const existingUser = await db.getDb().collection('users').findOne({email: enteredEmail}) || db.getDb().collection('users').findOne({nom_dutilisateur: enteredNom_dutilisateur});