From 7fa2842f5d49e87acf92bcfb3602c52bf482258e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 27 Feb 2020 10:40:52 +0100 Subject: [PATCH] Do not put password in form on modify --- server.go | 2 +- templates/config.html | 8 +++++++- web.go | 7 ++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index 309ac34..6ec6549 100644 --- a/server.go +++ b/server.go @@ -65,7 +65,7 @@ func checkTokenAndLog(handler http.Handler) http.Handler { return } - log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, strings.Split(r.URL, "?")[0]) + log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, strings.Split(r.URL.String(), "?")[0]) handler.ServeHTTP(w, r) }) } diff --git a/templates/config.html b/templates/config.html index 2d64444..9018811 100644 --- a/templates/config.html +++ b/templates/config.html @@ -28,7 +28,7 @@ {{$errors := .Errors}} {{range $i, $schema := .Schema}}
- + {{if $schema.FixedValue}} {{else if $schema.IsPassword}} + {{else if $schema.IsNumeric}} +