Make sure to expose the regex during install so the validation actually works

This commit is contained in:
Sebastiaan Janssen
2017-09-27 13:06:43 +02:00
parent b477ed726d
commit 01ba781e75

View File

@@ -1,4 +1,5 @@
@using Umbraco.Web
@using Umbraco.Core.Configuration
@using Umbraco.Web
@using Umbraco.Web.Install.Controllers
@{
Layout = null;
@@ -66,6 +67,8 @@
"installApiBaseUrl": "@ViewBag.InstallApiBaseUrl",
"umbracoBaseUrl": "@ViewBag.UmbracoBaseFolder"
};
Umbraco.Sys.ServerVariables.umbracoSettings = {};
Umbraco.Sys.ServerVariables.umbracoSettings.emailRegex = "@(UmbracoConfig.For.UmbracoSettings().Content.EmailRegex)";
</script>
<script src="lib/rgrove-lazyload/lazyload.js"></script>
<script src="js/install.loader.js"></script>