mongodb
This commit is contained in:
parent
74dcf9f004
commit
11db8b9d3e
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ router.post('/creer-compte', async function (req, res) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("here2")
|
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) {
|
if (existingUser) {
|
||||||
console.log("here4")
|
console.log("here4")
|
||||||
req.session.inputData = {
|
req.session.inputData = {
|
||||||
|
|
Loading…
Reference in a new issue