* Add current user data endpoint * Add Change password endpoint * Add SetAvatar * Add get node permissions * Add endpoint for getting currently logged in users linked logins * Add tour service * Add get tours * Add set tour endpoint * Added PermissionNames to IReadOnlyUserGroup * Only require backend auth on management api * Use ISet in response model * Fixed issue with saving null as startMediaId, where it was ignored * Add get current user endpoint * Fix missing linebreak * Append "New" keyword to policies * Update OpenApi --------- Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch>
31 lines
863 B
C#
31 lines
863 B
C#
using Umbraco.Cms.Core.Models.Membership;
|
|
|
|
namespace Umbraco.Cms.Api.Management.ViewModels.User;
|
|
|
|
public class UserResponseModel : UserPresentationBase, INamedEntityPresentationModel
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
public string? LanguageIsoCode { get; set; }
|
|
|
|
public ISet<Guid> ContentStartNodeIds { get; set; } = new HashSet<Guid>();
|
|
|
|
public ISet<Guid> MediaStartNodeIds { get; set; } = new HashSet<Guid>();
|
|
|
|
public IEnumerable<string> AvatarUrls { get; set; } = Enumerable.Empty<string>();
|
|
|
|
public UserState State { get; set; }
|
|
|
|
public int FailedLoginAttempts { get; set; }
|
|
|
|
public DateTime CreateDate { get; set; }
|
|
|
|
public DateTime UpdateDate { get; set; }
|
|
|
|
public DateTime? LastLoginDate { get; set; }
|
|
|
|
public DateTime? LastLockoutDate { get; set; }
|
|
|
|
public DateTime? LastPasswordChangeDate { get; set; }
|
|
}
|