diff --git a/app.js b/app.js index dea7ee9..cb8dbd4 100644 --- a/app.js +++ b/app.js @@ -142,7 +142,8 @@ app.post("/auth/check-login", (req, res) => { //res.cookie("authorization", userId, { maxAge: 900000, httpOnly: true }); - return res.render('index') + let cible = (role == 'P') ? 'master' : 'slave'; + return res.render(cible); } else { return res.render('login', { diff --git a/public/styles.css b/public/styles.css index 148f85e..672fafe 100644 --- a/public/styles.css +++ b/public/styles.css @@ -31,4 +31,11 @@ nav li a:hover { .card-header { background-color: #0d6efd !important; color: white !important; +} + +.boutons { + display: flex; +} + +.bouton { } \ No newline at end of file diff --git a/views/master.hbs b/views/master.hbs new file mode 100644 index 0000000..c7b9527 --- /dev/null +++ b/views/master.hbs @@ -0,0 +1,32 @@ + + +
+ + + +Bienvenue sur le projet MIA...
+