From d9e4392b1a6e616cc4d1826e0573b0a3511372c5 Mon Sep 17 00:00:00 2001 From: Fluf <36822577+flufmonster@users.noreply.github.com> Date: Fri, 25 May 2018 09:46:27 -0400 Subject: [PATCH] Switch to form field --- routers/user/auth_openid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)