mirror of
https://github.com/bitwarden/server
synced 2025-12-27 13:43:18 +00:00
validate and email on sso privisioning (#6734)
This commit is contained in:
@@ -99,6 +99,9 @@ public class RegisterUserCommand : IRegisterUserCommand
|
||||
|
||||
public async Task<IdentityResult> RegisterSSOAutoProvisionedUserAsync(User user, Organization organization)
|
||||
{
|
||||
// Validate that the email domain is not blocked by another organization's policy
|
||||
await ValidateEmailDomainNotBlockedAsync(user.Email, organization.Id);
|
||||
|
||||
var result = await _userService.CreateUserAsync(user);
|
||||
if (result == IdentityResult.Success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user