Add default action for send form
This commit is contained in:
parent
d7c362f62f
commit
d919709338
3 changed files with 11 additions and 2 deletions
|
@ -64,5 +64,12 @@ $primary: #d32f2f;
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.ErrorMessage {
|
||||
font-size: 1.3rem;
|
||||
margin: 20px 0 0;
|
||||
text-align: center;
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -26,3 +26,5 @@ block content
|
|||
|
||||
div
|
||||
input(type="submit" value="Zaloguj się >")
|
||||
|
||||
div(class="ErrorMessage")= message
|
||||
|
|
Loading…
Reference in a new issue