blob: ef094f1942346998e95717440934799715228ed2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package main
import (
"net/http"
)
func handle_login(w http.ResponseWriter, r *http.Request, params map[string]any) {
if r.Method != "POST" {
err := templates.ExecuteTemplate(w, "login", params)
if err != nil {
_, _ = w.Write([]byte("Error rendering template: " + err.Error()))
return
}
}
_ = r.PostFormValue("username")
_ = r.PostFormValue("password")
}
|