mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-29 12:55:21 +01:00
use a Set when validating emails to prevent duplicates (#3090)
This commit is contained in:
parent
5e84c630a8
commit
71b237a7eb
@ -187,7 +187,7 @@ export class UserAddEditComponent implements OnInit {
|
||||
);
|
||||
} else {
|
||||
const request = new OrganizationUserInviteRequest();
|
||||
request.emails = this.emails.trim().split(/\s*,\s*/);
|
||||
request.emails = [...new Set(this.emails.trim().split(/\s*,\s*/))];
|
||||
request.accessAll = this.access === "all";
|
||||
request.type = this.type;
|
||||
request.permissions = this.setRequestPermissions(
|
||||
|
Loading…
Reference in New Issue
Block a user