BuildAccountName fix reapplied.
This commit is contained in:
parent
fa5ce7eff3
commit
1d2f80f24a
2 changed files with 2 additions and 8 deletions
|
@ -1238,7 +1238,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;
|
||||
|
||||
|
@ -1246,11 +1245,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue