diff --git a/routers/install/install.go b/routers/install/install.go index dfd8047d04..140e008d9a 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -319,7 +319,7 @@ func SubmitInstall(ctx *context.Context) { // Check logic loophole between disable self-registration and no admin account. if form.DisableRegistration && len(form.AdminName) == 0 { - ctx.Data["Err_Services"] = true + ctx.Data["Err_DisabledRegistration"] = true ctx.Data["Err_Admin"] = true ctx.RenderWithErr(ctx.Tr("install.no_admin_and_disable_registration"), tplInstall, form) return diff --git a/templates/install.tmpl b/templates/install.tmpl index 400c565b34..356d75747e 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -154,7 +154,7 @@