Do not allow Mail or Organizations when creating new space with a IDN domain
This commit is contained in:
parent
fe81384ac0
commit
47f2c512b4
2 changed files with 17 additions and 1 deletions
|
@ -73,7 +73,7 @@
|
|||
<asp:Localize ID="locDomainName" runat="server" meta:resourcekey="locDomainName" Text="Domain name:"></asp:Localize>
|
||||
</td>
|
||||
<td class="Normal" width="100%">
|
||||
<wsp:DomainControl ID="txtDomainName" runat="server" RequiredEnabled="True" ValidationGroup="CreateSpace"></wsp:DomainControl>
|
||||
<wsp:DomainControl ID="txtDomainName" runat="server" RequiredEnabled="True" ValidationGroup="CreateSpace" AutoPostBack="True" OnTextChanged="txtDomainName_OnTextChanged"></wsp:DomainControl>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue