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) {