diff --git a/express_webapp/routes/connect.js b/express_webapp/routes/connect.js index deab50d..b99d6b6 100644 --- a/express_webapp/routes/connect.js +++ b/express_webapp/routes/connect.js @@ -17,7 +17,7 @@ router.post("/", function(req, res, next) { req.session.idUser = row.idUser; res.redirect("/"); } else { - res.render("connect", { title: "Connexion", message: "Email ou mot de passe incorrect" }); + res.render("errorAccount", { title: "Connexion", message: "Email ou mot de passe incorrect" }); } }); diff --git a/express_webapp/views/errorAccount.jade b/express_webapp/views/errorAccount.jade new file mode 100644 index 0000000..db235f0 --- /dev/null +++ b/express_webapp/views/errorAccount.jade @@ -0,0 +1,4 @@ +p. + Adresse email ou mot de passe incorrect +br +a(href="/connect") Essayez de vous reconnecter \ No newline at end of file