This commit is contained in:
clement callaert 2023-11-04 19:52:30 +01:00
parent 74752e718f
commit 8fa131ac74

View file

@ -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 = {