From 3abc41cccab2486012b46305827433ad6f5deade Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 18 Oct 2014 23:26:55 -0400 Subject: Fix API broken --- routers/user/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/user/auth.go') diff --git a/routers/user/auth.go b/routers/user/auth.go index c695f929..dd637786 100644 --- a/routers/user/auth.go +++ b/routers/user/auth.go @@ -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 -- cgit v1.2.3