Stable user lockout, role and claim calls
This commit is contained in:
@@ -2,6 +2,39 @@
|
||||
|
||||
namespace PostFundManagement.Domain.Models.Security;
|
||||
|
||||
public sealed class UserLockOutRequest
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string? UserId { get; set; }
|
||||
|
||||
[JsonPropertyName("userName")]
|
||||
public string? UserName { get; set; }
|
||||
|
||||
[JsonPropertyName("email")]
|
||||
public string? Email { get; set; }
|
||||
|
||||
[JsonPropertyName("emailConfirmed")]
|
||||
public bool EmailConfirmed { get; set; }
|
||||
|
||||
[JsonPropertyName("phoneNumber")]
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
[JsonPropertyName("phoneNumberConfirmed")]
|
||||
public bool PhoneNumberConfirmed { get; set; }
|
||||
|
||||
[JsonPropertyName("LockoutEnabled")]
|
||||
public bool LockoutEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("twoFactorEnabled")]
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("accessFailedCount")]
|
||||
public int AccessFailedCount { get; set; }
|
||||
|
||||
[JsonPropertyName("lockoutEnd")]
|
||||
public DateTimeOffset? LockoutEnd { get; set; }
|
||||
}
|
||||
|
||||
public sealed record AddUserClaimRequest([Required] Guid UserId,
|
||||
[Required] int ClaimId,
|
||||
[Required][MaxLength(LabelLength)] string ClaimType,
|
||||
|
||||
Reference in New Issue
Block a user