diff options
Diffstat (limited to '')
-rw-r--r-- | auth.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -119,9 +119,9 @@ func loginPage() http.HandlerFunc { if session(r).Authenticated { http.Redirect(w, r, "/", http.StatusFound) } - showLoginPage(w, User{ - Csrf: CsrfField(r), - }) + u := User{} + u.SetCsrfField(r) + showLoginPage(w, u) } } |