Merge pull request #2 from KoltesDigital/patch-1

fix: transmit pattern info to the template on POST request
This commit is contained in:
Nick Penkov
2020-05-03 11:05:23 +02:00
committed by GitHub

View File

@ -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")) t, e := template.ParseFiles(path.Join("templates", "index.html"))
if e != nil { if e != nil {