BuildAccountName fix reapplied.
This commit is contained in:
parent
7ffa59a4d2
commit
8102049d80
2 changed files with 2 additions and 8 deletions
|
@ -1241,7 +1241,6 @@ namespace WebsitePanel.EnterpriseServer
|
|||
private static string BuildAccountName(string orgId, string name)
|
||||
{
|
||||
string accountName = name = name.Replace(" ", "");
|
||||
string CounterStr = "00000";
|
||||
int counter = 0;
|
||||
bool bFound = false;
|
||||
|
||||
|
@ -1249,11 +1248,10 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
do
|
||||
{
|
||||
accountName = genSamLogin(name, CounterStr);
|
||||
accountName = genSamLogin(name, counter.ToString("d5"));
|
||||
|
||||
if (!AccountExists(accountName)) bFound = true;
|
||||
|
||||
CounterStr = counter.ToString("d5");
|
||||
counter++;
|
||||
}
|
||||
while (!bFound);
|
||||
|
|
|
@ -1458,19 +1458,15 @@ namespace WebsitePanel.EnterpriseServer
|
|||
private static string BuildAccountName(string orgId, string name, int ServiceId)
|
||||
{
|
||||
string accountName = name = name.Replace(" ", "");
|
||||
string CounterStr = "00000";
|
||||
int counter = 0;
|
||||
bool bFound = false;
|
||||
|
||||
if (!AccountExists(accountName, ServiceId)) return accountName;
|
||||
|
||||
do
|
||||
{
|
||||
accountName = genSamLogin(name, CounterStr);
|
||||
accountName = genSamLogin(name, counter.ToString("d5"));
|
||||
|
||||
if (!AccountExists(accountName, ServiceId)) bFound = true;
|
||||
|
||||
CounterStr = counter.ToString("d5");
|
||||
counter++;
|
||||
}
|
||||
while (!bFound);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue