浏览代码

Allow registration when button is hidden (#8238)

tags/v1.9.4
guillep2k 4 年前
父节点
当前提交
3fc42add16
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      routers/user/auth.go

+ 1
- 1
routers/user/auth.go 查看文件

@@ -1008,7 +1008,7 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo
ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey

//Permission denied if DisableRegistration or AllowOnlyExternalRegistration options are true
if !setting.Service.ShowRegistrationButton {
if setting.Service.DisableRegistration {
ctx.Error(403)
return
}

正在加载...
取消
保存