Skip to content

Commit

Permalink
ajout viewError
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael16b committed Oct 21, 2022
1 parent 9477f9e commit 094021a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion express_webapp/routes/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
}
});

Expand Down
4 changes: 4 additions & 0 deletions express_webapp/views/errorAccount.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
p.
Adresse email ou mot de passe incorrect
br
a(href="/connect") Essayez de vous reconnecter

0 comments on commit 094021a

Please sign in to comment.