Creating the auth handlers for the login screen

This commit is contained in:
2024-07-19 09:23:45 +02:00
parent 447bfc4599
commit 3e70a5727f
2 changed files with 7 additions and 0 deletions

View File

@ -451,3 +451,9 @@ func (m *Repository) BookRoom(w http.ResponseWriter, r *http.Request) {
m.App.Session.Put(r.Context(), "reservation", res)
http.Redirect(w, r, "/make-reservation", http.StatusSeeOther)
}
func (m *Repository) ShowLogin(w http.ResponseWriter, r *http.Request) {
render.Template(w, r, "login.page.tmpl", &models.TemplateData{
Form: forms.New(nil),
})
}