소스 검색

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
}

Loading…
취소
저장