mirror of
https://github.com/bitwarden/server
synced 2025-12-21 18:53:41 +00:00
Ac/pm 17449/add managed user validation to email token (#5437)
This commit is contained in:
@@ -136,6 +136,16 @@ public interface IUserService
|
||||
/// </returns>
|
||||
Task<bool> IsManagedByAnyOrganizationAsync(Guid userId);
|
||||
|
||||
/// <summary>
|
||||
/// Verify whether the new email domain meets the requirements for managed users.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// </remarks>
|
||||
/// <returns>
|
||||
/// IdentityResult
|
||||
/// </returns>
|
||||
Task<IdentityResult> ValidateManagedUserDomainAsync(User user, string newEmail);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the organizations that manage the user.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user