1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-15 15:53:41 +00:00

skip non-deleted users with no email

This commit is contained in:
Kyle Spearrin
2017-05-19 11:05:58 -04:00
parent 1ced231e48
commit 0d01488fc4
2 changed files with 3 additions and 2 deletions

View File

@@ -214,7 +214,8 @@ namespace Bit.Core.Services
ExternalId = user.Id,
Email = user.PrimaryEmail,
Disabled = user.Suspended.GetValueOrDefault(false),
Deleted = deleted
Deleted = deleted,
CreationDate = user.CreationTime
};
if(string.IsNullOrWhiteSpace(entry.Email) && !entry.Deleted)

View File

@@ -355,7 +355,7 @@ namespace Bit.Core.Services
SettingsService.Instance.Sync.Ldap.UserEmailSuffix).ToLowerInvariant();
}
if(string.IsNullOrWhiteSpace(user.Email) && !user.Disabled && !user.Deleted)
if(string.IsNullOrWhiteSpace(user.Email) && !user.Deleted)
{
return null;
}