Browse Source

mongodb

main
clement callaert 2 years ago
parent
commit
11db8b9d3e
  1. 2
      routes/auth.js

2
routes/auth.js

@ -60,7 +60,7 @@ router.post('/creer-compte', async function (req, res) {
return;
}
console.log("here2")
const existingUser = await db.getDb().collection('users').findOne({email: enteredEmail});
const existingUser = await db.getDb().collection('users').findOne({email: enteredEmail})
if (existingUser) {
console.log("here4")
req.session.inputData = {

Loading…
Cancel
Save