Create login form & handle auth

This commit is contained in:
William Bouzourène 2024-12-21 18:39:09 +01:00
parent cd783fb546
commit af5528f60c
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
6 changed files with 112 additions and 7 deletions

22
views/login.pug Normal file
View file

@ -0,0 +1,22 @@
include partials/header.pug
.container
#login-card.my-5
.card
.card-header
| Authentification
.card-body
if .LoginError
.alert.alert-danger
| #{.LoginError}
form#login(method="post")
.mb-3
label.form-label(for="email") Adresse email
input#email.form-control(type="email", required, name="email")
.mb-3
label.form-label(for="password") Mot de passe
input#password.form-control(type="password", required, name="password")
.mt-3.text-end
button.btn.btn-primary(type="submit")
i.me-2(data-feather="log-in")
| Connexion