This commit is contained in:
clement callaert 2023-11-04 18:09:43 +01:00
parent 73d0f9dbc7
commit 6b7081c481

View file

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