mongodb
This commit is contained in:
parent
8fa131ac74
commit
74dcf9f004
1 changed files with 1 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue