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