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