From 64877bccc255863d7937323c426adecce4e07b2a Mon Sep 17 00:00:00 2001 From: "a.skorina" Date: Mon, 3 Nov 2014 14:57:17 +0300 Subject: [PATCH] user creation fix --- .../HostedSolution/OrganizationController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs index 2b8341ab..b2830b5e 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs @@ -1657,6 +1657,11 @@ namespace WebsitePanel.EnterpriseServer int maxLen = 19 - orgId.Length; + if (!string.IsNullOrEmpty(orgId)) + { + orgId = orgId.TrimEnd(' ', '.'); + } + // try to choose name int i = 0;