ExchangeAccount password removed from import

This commit is contained in:
vfedosevich 2015-04-16 07:30:21 -07:00
parent 736e83746f
commit de8b36256b

View file

@ -969,13 +969,13 @@ namespace WebsitePanel.Import.Enterprise
{ {
return DataProvider.AddExchangeAccount(itemId, (int)accountType, return DataProvider.AddExchangeAccount(itemId, (int)accountType,
accountName, displayName, primaryEmailAddress, mailEnabledPublicFolder, accountName, displayName, primaryEmailAddress, mailEnabledPublicFolder,
mailboxManagerActions.ToString(), samAccountName, CryptoUtils.Encrypt(accountPassword),0, string.Empty); mailboxManagerActions.ToString(), samAccountName,0, string.Empty);
} }
private static int AddOrganizationUser(int itemId, string accountName, string displayName, string email, string samAccountName, string accountPassword) private static int AddOrganizationUser(int itemId, string accountName, string displayName, string email, string samAccountName, string accountPassword)
{ {
return DataProvider.AddExchangeAccount(itemId, (int)ExchangeAccountType.User, accountName, displayName, email, false, string.Empty, return DataProvider.AddExchangeAccount(itemId, (int)ExchangeAccountType.User, accountName, displayName, email, false, string.Empty,
samAccountName, CryptoUtils.Encrypt(accountPassword), 0 , string.Empty); samAccountName, 0 , string.Empty);
} }
@ -996,7 +996,7 @@ namespace WebsitePanel.Import.Enterprise
mailEnabledPublicFolder, mailEnabledPublicFolder,
mailboxManagerActions, mailboxManagerActions,
samAccountName, samAccountName,
CryptoUtils.Encrypt(accountPassword), mailboxPlanId , -1, string.Empty, false); mailboxPlanId , -1, string.Empty, false);
} }
} }
} }