mongodb
This commit is contained in:
parent
72b7f656d6
commit
74752e718f
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ router.post('/creer-compte', async function (req, res) {
|
|||
db.getDb().collection('users').findOne({nom_dutilisateur: enteredNom_dutilisateur});
|
||||
console.log(existingUser)
|
||||
if (existingUser) {
|
||||
console.log("here4")
|
||||
req.session.inputData = {
|
||||
hasError: true,
|
||||
message: 'User exists already!',
|
||||
|
|
Loading…
Reference in a new issue