diff options
Diffstat (limited to 'auth.go')
-rw-r--r-- | auth.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) } |