From 09fccc3599dc4f23a60c4bdbc77c2f4740e2ade4 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 3 Oct 2024 22:33:25 +0200 Subject: Focus Name field automatically --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth.go') diff --git a/auth.go b/auth.go index c503da4..7e23cd6 100644 --- a/auth.go +++ b/auth.go @@ -103,7 +103,7 @@ func handleLogout() http.HandlerFunc { } type User struct { - Name string `form:"options=required"` + Name string `form:"options=required,autofocus"` Password string `form:"type=password;options=required"` RememberMe bool `form:"type=checkbox;value=y;options=checked"` Errors []error `form:"-"` -- cgit v1.2.3-70-g09d2