From 9f13ed87977421db193e000b08aee37fcdaf3790 Mon Sep 17 00:00:00 2001 From: "Jonathan Giroux (Koltes)" Date: Sat, 18 Apr 2020 11:39:47 +0200 Subject: [PATCH] fix: transmit pattern info to the template on POST request --- app/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/web.go b/app/web.go index eb3d888..6180357 100644 --- a/app/web.go +++ b/app/web.go @@ -123,7 +123,7 @@ func ChangePassword(w http.ResponseWriter, req *http.Request) { } } - p := &pageData{Title: getTitle(), Alerts: alerts, Username: un, CaptchaId: captcha.New()} + p := &pageData{Title: getTitle(), Alerts: alerts, Username: un, CaptchaId: captcha.New(), Pattern: getPattern(), PatternInfo: getPatternInfo()} t, e := template.ParseFiles(path.Join("templates", "index.html")) if e != nil {