Allow registration when button is hidden (#8238)

这个提交包含在:
guillep2k
2019-09-19 11:58:47 +03:00
提交者 Lauris BH
父节点 4b9786ba62
当前提交 3fc42add16
+1 -1
查看文件
@@ -1008,7 +1008,7 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo
ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey
//Permission denied if DisableRegistration or AllowOnlyExternalRegistration options are true //Permission denied if DisableRegistration or AllowOnlyExternalRegistration options are true
if !setting.Service.ShowRegistrationButton { if setting.Service.DisableRegistration {
ctx.Error(403) ctx.Error(403)
return return
} }