From 6b7081c4817b96f56ac6afdb1e0c4cba8f2e5203 Mon Sep 17 00:00:00 2001 From: clement callaert Date: Sat, 4 Nov 2023 18:09:43 +0100 Subject: [PATCH] mongodb --- routes/auth.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/routes/auth.js b/routes/auth.js index c458cbc..154eeaf 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -7,18 +7,8 @@ const db = require('../data/database'); const router = express.Router(); router.get('/creer-compte', function (req, res) { - let sessionInputData = { - hasError: false, - nom: '', - prenom: '', - nom_dutilisateur: '', - email: '', - confirmEmail: '', - password: '', - confirmPassword: '' - }; req.session.input = null; - res.render('creer_compte', {inputData: sessionInputData}); + res.render('creer_compte'); }); router.post('/creer-compte', async function (req, res) {