mirror of
https://github.com/bitwarden/server.git
synced 2025-04-21 13:05:11 -05:00
prevent duplicate invite accepts
This commit is contained in:
parent
c9a2e67d09
commit
c42928f26d
@ -940,6 +940,12 @@ namespace Bit.Core.Services
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var existingOrgUser = await _organizationUserRepository.GetByOrganizationAsync(orgUser.OrganizationId, user.Email);
|
||||||
|
if(existingOrgUser != null)
|
||||||
|
{
|
||||||
|
throw new BadRequestException("You are already part of this organization.");
|
||||||
|
}
|
||||||
|
|
||||||
var tokenValidationFailed = true;
|
var tokenValidationFailed = true;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user