Fix API broken

This commit is contained in:
Unknwon 2014-10-18 23:26:55 -04:00
parent 9e3a1bc11a
commit 3abc41ccca
10 changed files with 12 additions and 10 deletions

View file

@ -229,7 +229,7 @@ func SignUpPost(ctx *middleware.Context, cpt *captcha.Captcha, form auth.Registe
return
}
if !cpt.VerifyReq(ctx.Req) {
if !cpt.VerifyReq(ctx.Req.Request) {
ctx.Data["Err_Captcha"] = true
ctx.RenderWithErr(ctx.Tr("form.captcha_incorrect"), SIGNUP, &form)
return