diff --git a/public/stylesheets/login.scss b/public/stylesheets/login.scss index 00db108..5d0c748 100644 --- a/public/stylesheets/login.scss +++ b/public/stylesheets/login.scss @@ -64,5 +64,12 @@ $primary: #d32f2f; display: none; } } + + .ErrorMessage { + font-size: 1.3rem; + margin: 20px 0 0; + text-align: center; + color: red; + } } } diff --git a/routes/cufs.js b/routes/cufs.js index 4d2bdc1..dc2724f 100644 --- a/routes/cufs.js +++ b/routes/cufs.js @@ -7,12 +7,12 @@ router.get("/", function(req, res) { // GET login page router.get("/Default/Account/LogOn", function(req, res) { - res.render("login-form", { title: "login (Default)" }); + res.render("login-form", { title: "Logowanie (Default)" }); }); // POST login router.post("/Default/Account/LogOn", function(req, res) { - res.json({"message": "Not implemented yet"}); + res.render("login-form", { title: "Logowanie (Default)", message: "Zła nazwa użytkownika lub hasło" }); }); module.exports = router; diff --git a/views/login-form.jade b/views/login-form.jade index 32e2a89..618c212 100644 --- a/views/login-form.jade +++ b/views/login-form.jade @@ -26,3 +26,5 @@ block content div input(type="submit" value="Zaloguj się >") + + div(class="ErrorMessage")= message