From 47f2c512b4f5a864cc85124c6c11578c4b63927c Mon Sep 17 00:00:00 2001 From: Olov Karlsson Date: Sat, 20 Dec 2014 18:51:25 +0100 Subject: [PATCH] Do not allow Mail or Organizations when creating new space with a IDN domain --- .../WebsitePanel/UserCreateSpace.ascx | 2 +- .../WebsitePanel/UserCreateSpace.ascx.cs | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx index 8c821a95..ff40e5e3 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx @@ -73,7 +73,7 @@ - + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx.cs index 2f4bb529..b0cfd4af 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCreateSpace.ascx.cs @@ -31,6 +31,7 @@ using System.Collections.Generic; using System.Linq; using System.Web.UI.WebControls; using WebsitePanel.EnterpriseServer; +using WebsitePanel.Portal.UserControls; using WebsitePanel.Providers.HostedSolution; namespace WebsitePanel.Portal @@ -266,5 +267,20 @@ namespace WebsitePanel.Portal { BindHostingPlan(); } + + protected void txtDomainName_OnTextChanged(object sender, DomainControl.DomainNameEventArgs e) + { + if (Utils.IsIdnDomain(txtDomainName.Text)) + { + fsMail.Disabled = true; + chkIntegratedOUProvisioning.Checked = false; + chkIntegratedOUProvisioning.Enabled = false; + } + else + { + fsMail.Disabled = false; + BindHostingPlan(); + } + } } } \ No newline at end of file