mongodb
This commit is contained in:
parent
74752e718f
commit
8fa131ac74
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ router.post('/creer-compte', async function (req, res) {
|
||||||
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}) ||
|
||||||
db.getDb().collection('users').findOne({nom_dutilisateur: enteredNom_dutilisateur});
|
db.getDb().collection('users').findOne({nom_dutilisateur: enteredNom_dutilisateur});
|
||||||
console.log(existingUser)
|
console.log(existingUser.toArray())
|
||||||
if (existingUser) {
|
if (existingUser) {
|
||||||
console.log("here4")
|
console.log("here4")
|
||||||
req.session.inputData = {
|
req.session.inputData = {
|
||||||
|
|
Loading…
Reference in a new issue