try fixing captcha
This commit is contained in:
parent
6274fff05b
commit
534e023526
@ -996,6 +996,7 @@ func (self *httpFrontend) serve_captcha(wr http.ResponseWriter, r *http.Request)
|
||||
id, ok := s.Values["captcha_id"]
|
||||
if ok {
|
||||
redirect_url := fmt.Sprintf("%scaptcha/%s.png", self.prefix, id)
|
||||
s.Save(r, wr)
|
||||
http.Redirect(wr, r, redirect_url, 302)
|
||||
} else {
|
||||
captcha_id := captcha.New()
|
||||
|
Reference in New Issue
Block a user