mongodb
This commit is contained in:
parent
bb76aab7d3
commit
90f46467dd
1 changed files with 2 additions and 2 deletions
|
@ -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});
|
||||
|
||||
|
|
Loading…
Reference in a new issue