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

Merge pull request #106 from djsmith85/master

Fix filteringForUnsupportedUsers and extend email validation to handle emails up to 256 char
This commit is contained in:
Chad Scharf
2021-03-25 14:23:26 -04:00
committed by GitHub

View File

@@ -104,7 +104,7 @@ export class SyncService {
}
private filterUnsupportedUsers(users: UserEntry[]): UserEntry[] {
return users == null ? null : users.filter(u => u.email == null || u.email.length <= 50);
return users == null ? null : users.filter(u => u.email?.length <= 256);
}
private flattenUsersToGroups(levelGroups: GroupEntry[], allGroups: GroupEntry[]): Set<string> {