Add default action for send form

This commit is contained in:
Mikołaj Pich 2017-11-28 20:13:42 +01:00
parent d7c362f62f
commit d919709338
3 changed files with 11 additions and 2 deletions

View file

@ -64,5 +64,12 @@ $primary: #d32f2f;
display: none;
}
}
.ErrorMessage {
font-size: 1.3rem;
margin: 20px 0 0;
text-align: center;
color: red;
}
}
}

View file

@ -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;

View file

@ -26,3 +26,5 @@ block content
div
input(type="submit" value="Zaloguj się >")
div(class="ErrorMessage")= message