This commit is contained in:
clement callaert 2023-11-04 20:14:41 +01:00
parent 8fa131ac74
commit 74dcf9f004

View file

@ -60,9 +60,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});
console.log(existingUser.toArray())
const existingUser = await db.getDb().collection('users').findOne({email: enteredEmail});
if (existingUser) {
console.log("here4")
req.session.inputData = {