* Added functionality to verify user invite tokens and create the initial password * Add response types * Fail ValidateCredentialsAsync when user is not approved * Enable user as part of initial password creating using validation token * Adds documentation to badrequest and changed nocontent to ok, to align with other APIs * Fixed tests and added a new one --------- Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
26 lines
927 B
C#
26 lines
927 B
C#
using Umbraco.Cms.Core.Models;
|
|
using Umbraco.Cms.Core.Models.Membership;
|
|
using Umbraco.Cms.Core.Services.OperationStatus;
|
|
|
|
namespace Umbraco.Cms.Core.Security;
|
|
|
|
public interface ICoreBackOfficeUserManager
|
|
{
|
|
Task<IdentityCreationResult> CreateAsync(UserCreateModel createModel);
|
|
|
|
/// <summary>
|
|
/// Creates a user for an invite. This means that the password will not be populated with
|
|
/// </summary>
|
|
/// <param name="createModel"></param>
|
|
/// <returns></returns>
|
|
Task<IdentityCreationResult> CreateForInvite(UserCreateModel createModel);
|
|
|
|
Task<Attempt<string, UserOperationStatus>> GenerateEmailConfirmationTokenAsync(IUser user);
|
|
|
|
Task<Attempt<UserUnlockResult, UserOperationStatus>> UnlockUser(IUser user);
|
|
|
|
Task<Attempt<ICollection<IIdentityUserLogin>, UserOperationStatus>> GetLoginsAsync(IUser user);
|
|
|
|
Task<bool> IsEmailConfirmationTokenValidAsync(IUser user, string token);
|
|
}
|