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