Update main.go

This commit is contained in:
s441433 2018-12-28 02:35:29 +01:00
parent 3e91e55549
commit eeec4754ca

View File

@ -32,7 +32,7 @@ func panel(w http.ResponseWriter, r *http.Request) {
func login(w http.ResponseWriter, r *http.Request) {
fmt.Println("method:", r.Method)
if r.Method == "GET" {
t, _ := template.ParseFiles("login.gtpl")
t, _ := template.ParseFiles("login.html")
t.Execute(w, nil)
} else {
r.ParseForm()