Update main.go
This commit is contained in:
parent
3e91e55549
commit
eeec4754ca
2
main.go
2
main.go
@ -32,7 +32,7 @@ func panel(w http.ResponseWriter, r *http.Request) {
|
|||||||
func login(w http.ResponseWriter, r *http.Request) {
|
func login(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Println("method:", r.Method)
|
fmt.Println("method:", r.Method)
|
||||||
if r.Method == "GET" {
|
if r.Method == "GET" {
|
||||||
t, _ := template.ParseFiles("login.gtpl")
|
t, _ := template.ParseFiles("login.html")
|
||||||
t.Execute(w, nil)
|
t.Execute(w, nil)
|
||||||
} else {
|
} else {
|
||||||
r.ParseForm()
|
r.ParseForm()
|
||||||
|
Loading…
Reference in New Issue
Block a user