summaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/auth.go b/auth.go
index 3613530..14cd6d7 100644
--- a/auth.go
+++ b/auth.go
@@ -101,6 +101,13 @@ func handleLogout() http.HandlerFunc {
}
}
+type User struct {
+ Name string `form:"options=required"`
+ Password string `form:"type=password;options=required"`
+ RememberMe bool `form:"type=checkbox;value=y;options=checked"`
+ Errors []error `form:"-"`
+}
+
func showLoginPage(w http.ResponseWriter, u User) {
showTemplate(w, "login", u)
}