This commit is contained in:
clement callaert 2023-11-04 18:11:22 +01:00
parent 6b7081c481
commit 7103520e2b

View file

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