Browse Source

Allow registration when button is hidden (#8238)

tags/v1.9.4
guillep2k 4 years ago
parent
commit
3fc42add16
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      routers/user/auth.go

+ 1
- 1
routers/user/auth.go View File

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
} }

Loading…
Cancel
Save