Archived
1
0

try fixing captcha

This commit is contained in:
Jeff Becker 2017-09-30 07:32:01 -04:00
parent 6274fff05b
commit 534e023526
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -996,6 +996,7 @@ func (self *httpFrontend) serve_captcha(wr http.ResponseWriter, r *http.Request)
id, ok := s.Values["captcha_id"] id, ok := s.Values["captcha_id"]
if ok { if ok {
redirect_url := fmt.Sprintf("%scaptcha/%s.png", self.prefix, id) redirect_url := fmt.Sprintf("%scaptcha/%s.png", self.prefix, id)
s.Save(r, wr)
http.Redirect(wr, r, redirect_url, 302) http.Redirect(wr, r, redirect_url, 302)
} else { } else {
captcha_id := captcha.New() captcha_id := captcha.New()