Got distinct index and login pages working.
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func homeHandler(c http.ResponseWriter, req *http.Request) {
|
||||
log.Printf("%v\n", req.URL)
|
||||
T("index.html").Execute(c, map[string]interface{}{})
|
||||
}
|
||||
|
||||
func loginHandler(c http.ResponseWriter, req *http.Request) {
|
||||
pwAttempt := req.FormValue("passwd")
|
||||
log.Printf("%v\n", pwAttempt)
|
||||
T("login.html").Execute(c, map[string]interface{}{})
|
||||
}
|
||||
Reference in New Issue
Block a user