mongodb
This commit is contained in:
parent
6b7081c481
commit
7103520e2b
1 changed files with 10 additions and 1 deletions
|
@ -7,8 +7,17 @@ const db = require('../data/database');
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
router.get('/creer-compte', function (req, res) {
|
router.get('/creer-compte', function (req, res) {
|
||||||
|
let sessionInputData = {
|
||||||
|
nom: '',
|
||||||
|
prenom: '',
|
||||||
|
nom_dutilisateur: '',
|
||||||
|
email: '',
|
||||||
|
confirmEmail: '',
|
||||||
|
password: '',
|
||||||
|
confirmPassword: ''
|
||||||
|
};
|
||||||
req.session.input = null;
|
req.session.input = null;
|
||||||
res.render('creer_compte');
|
res.render('creer_compte', {inputData: sessionInputData});
|
||||||
});
|
});
|
||||||
|
|
||||||
router.post('/creer-compte', async function (req, res) {
|
router.post('/creer-compte', async function (req, res) {
|
||||||
|
|
Loading…
Reference in a new issue