mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 12:28:03 +02:00
Fix API broken
This commit is contained in:
1 parent
3abc41ccca
commit
146c8efee3
1 file changed
+1
-1
@@ -229,7 +229,7 @@ func SignUpPost(ctx *middleware.Context, cpt *captcha.Captcha, form auth.Registe
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !cpt.VerifyReq(ctx.Req.Request) {
|
if !cpt.VerifyReq(ctx.Req) {
|
||||||
ctx.Data["Err_Captcha"] = true
|
ctx.Data["Err_Captcha"] = true
|
||||||
ctx.RenderWithErr(ctx.Tr("form.captcha_incorrect"), SIGNUP, &form)
|
ctx.RenderWithErr(ctx.Tr("form.captcha_incorrect"), SIGNUP, &form)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user