Browse Source

Allow registration when button is hidden (#8237)

tags/v1.10.0-rc1
guillep2k 6 years ago committed by Lunny Xiao
parent
commit
8a0379d68a
  1. 2
      routers/user/auth.go

2
routers/user/auth.go

@ -1009,7 +1009,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
}

Loading…
Cancel
Save