diff --git a/src/Api/Auth/Controllers/AccountsController.cs b/src/Api/Auth/Controllers/AccountsController.cs
index 2555a6fe2d..b4dba085b1 100644
--- a/src/Api/Auth/Controllers/AccountsController.cs
+++ b/src/Api/Auth/Controllers/AccountsController.cs
@@ -124,7 +124,7 @@ public class AccountsController : Controller
throw new BadRequestException("MasterPasswordHash", "Invalid password.");
}
- var managedUserValidationResult = await _userService.ValidateManagedUserDomainAsync(user, model.NewEmail);
+ var managedUserValidationResult = await _userService.ValidateClaimedUserDomainAsync(user, model.NewEmail);
if (!managedUserValidationResult.Succeeded)
{
diff --git a/src/Core/Services/IUserService.cs b/src/Core/Services/IUserService.cs
index b6a1d1f05b..f8ce8a83c2 100644
--- a/src/Core/Services/IUserService.cs
+++ b/src/Core/Services/IUserService.cs
@@ -142,9 +142,9 @@ public interface IUserService
///
///
///
- /// IdentityResult
+ /// IdentityResult
///
- Task ValidateManagedUserDomainAsync(User user, string newEmail);
+ Task ValidateClaimedUserDomainAsync(User user, string newEmail);
///
/// Gets the organizations that manage the user.
diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs
index 5076c8282e..4df4857463 100644
--- a/src/Core/Services/Implementations/UserService.cs
+++ b/src/Core/Services/Implementations/UserService.cs
@@ -545,7 +545,7 @@ public class UserService : UserManager, IUserService, IDisposable
return IdentityResult.Failed(_identityErrorDescriber.PasswordMismatch());
}
- var managedUserValidationResult = await ValidateManagedUserDomainAsync(user, newEmail);
+ var managedUserValidationResult = await ValidateClaimedUserDomainAsync(user, newEmail);
if (!managedUserValidationResult.Succeeded)
{
@@ -617,7 +617,7 @@ public class UserService : UserManager, IUserService, IDisposable
return IdentityResult.Success;
}
- public async Task ValidateManagedUserDomainAsync(User user, string newEmail)
+ public async Task ValidateClaimedUserDomainAsync(User user, string newEmail)
{
var managingOrganizations = await GetOrganizationsManagingUserAsync(user.Id);
diff --git a/test/Api.Test/Auth/Controllers/AccountsControllerTests.cs b/test/Api.Test/Auth/Controllers/AccountsControllerTests.cs
index 15c7573aca..407d3e5304 100644
--- a/test/Api.Test/Auth/Controllers/AccountsControllerTests.cs
+++ b/test/Api.Test/Auth/Controllers/AccountsControllerTests.cs
@@ -120,7 +120,7 @@ public class AccountsControllerTests : IDisposable
ConfigureUserServiceToReturnValidPrincipalFor(user);
ConfigureUserServiceToAcceptPasswordFor(user);
const string newEmail = "example@user.com";
- _userService.ValidateManagedUserDomainAsync(user, newEmail).Returns(IdentityResult.Success);
+ _userService.ValidateClaimedUserDomainAsync(user, newEmail).Returns(IdentityResult.Success);
// Act
await _sut.PostEmailToken(new EmailTokenRequestModel { NewEmail = newEmail });
@@ -139,7 +139,7 @@ public class AccountsControllerTests : IDisposable
const string newEmail = "example@user.com";
- _userService.ValidateManagedUserDomainAsync(user, newEmail)
+ _userService.ValidateClaimedUserDomainAsync(user, newEmail)
.Returns(IdentityResult.Failed(new IdentityError
{
Code = "TestFailure",