Removed reduntant cast to captcha.ID.
This commit is contained in:
parent
c92d02f4e4
commit
0957102169
@ -47,7 +47,7 @@ func (h *CaptchaHandlers) Solve(w http.ResponseWriter, r *http.Request) {
|
||||
captchaID := pcaptcha.ID(server.GetURLParam(r, "captcha"))
|
||||
answer := pcaptcha.Answer(r.FormValue("answer"))
|
||||
|
||||
ok, err := captcha.Solve(pcaptcha.ID(captchaID), answer)
|
||||
ok, err := captcha.Solve(captchaID, answer)
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user