Switch to form field
This commit is contained in:
parent
313e7dd47b
commit
d9e4392b1a
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user