func SignUp(ctx *context.Context) {
	ctx.Data["Title"] = ctx.Tr("sign_up")

	ctx.Data["SignUpLink"] = setting.AppSubURL + "/user/sign_up"

	ctx.Data["EnableCaptcha"] = setting.Service.EnableCaptcha
	ctx.Data["RecaptchaURL"] = setting.Service.RecaptchaURL
	ctx.Data["Captcha"] = context.GetImageCaptcha()
	ctx.Data["CaptchaType"] = setting.Service.CaptchaType
	ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey
	ctx.Data["HcaptchaSitekey"] = setting.Service.HcaptchaSitekey
	ctx.Data["PageIsSignUp"] = true

	//Show Disabled Registration message if DisableRegistration or AllowOnlyExternalRegistration options are true
	ctx.Data["DisableRegistration"] = setting.Service.DisableRegistration || setting.Service.AllowOnlyExternalRegistration

	ctx.HTML(http.StatusOK, tplSignUp)
}
// SignUp render the register page
SignUp render the register page
// SignUp render the register page
func SignUp(ctx *context.Context) {
	ctx.Data["Title"] = ctx.Tr("sign_up")
	ctx.Data["SignUpLink"] = setting.AppSubURL + "/user/sign_up"
	ctx.Data["EnableCaptcha"] = setting.Service.EnableCaptcha
	ctx.Data["RecaptchaURL"] = setting.Service.RecaptchaURL
	ctx.Data["Captcha"] = context.GetImageCaptcha()
	ctx.Data["CaptchaType"] = setting.Service.CaptchaType
	ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey
	ctx.Data["HcaptchaSitekey"] = setting.Service.HcaptchaSitekey
	ctx.Data["PageIsSignUp"] = true
	ctx.Data["DisableRegistration"] = setting.Service.DisableRegistration || setting.Service.AllowOnlyExternalRegistration
	ctx.HTML(http.StatusOK, tplSignUp)
}
func SignUp ( ctx * context . Context ) { ctx . Data [ " " ] = ctx . Tr ( " " ) ctx . Data [ " " ] = setting . AppSubURL + " " ctx . Data [ " " ] = setting . Service . EnableCaptcha ctx . Data [ " " ] = setting . Service . RecaptchaURL ctx . Data [ " " ] = context . GetImageCaptcha ( ) ctx . Data [ " " ] = setting . Service . CaptchaType ctx . Data [ " " ] = setting . Service . RecaptchaSitekey ctx . Data [ " " ] = setting . Service . HcaptchaSitekey ctx . Data [ " " ] = true ctx . Data [ " " ] = setting . Service . DisableRegistration || setting . Service . AllowOnlyExternalRegistration ctx . HTML ( http . StatusOK , tplSignUp ) }
SignUp render the register page
SignUp render the register page
//Show Disabled Registration message if DisableRegistration or AllowOnlyExternalRegistration options are true