diff --git a/routers/user/auth_openid.go b/routers/user/auth_openid.go index a53be2d40..9d9882e5a 100644 --- a/routers/user/auth_openid.go +++ b/routers/user/auth_openid.go @@ -348,7 +348,7 @@ func RegisterOpenIDPost(ctx *context.Context, cpt *captcha.Captcha, form auth.Si if setting.Service.EnableRecaptcha { ctx.Req.ParseForm() - valid, _ := recaptcha.Verify(ctx.Req.Form.Get("g-recaptcha-response")) + valid, _ := recaptcha.Verify(form.GRecaptchaResponse) if !valid { ctx.Data["Err_Captcha"] = true ctx.RenderWithErr(ctx.Tr("form.captcha_incorrect"), tplSignUpOID, &form)