Merge pull request #2 from KoltesDigital/patch-1
fix: transmit pattern info to the template on POST request
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user