This commit is contained in:
clement callaert 2023-11-04 18:17:57 +01:00
parent bb76aab7d3
commit 90f46467dd

View file

@ -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});