fix: transmit pattern info to the template on POST request

This commit is contained in:
Jonathan Giroux (Koltes)
2020-04-18 11:39:47 +02:00
committed by GitHub
parent bde6cd2894
commit 9f13ed8797

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"))
if e != nil {