Ajoute une table de gestion des utilisateurs
This commit is contained in:
@@ -95,6 +95,37 @@ public sealed class AdminUpdateUserRequest
|
||||
public string? Bio { get; init; }
|
||||
}
|
||||
|
||||
public sealed class AdminCreateUserRequest
|
||||
{
|
||||
public string Username { get; init; } = string.Empty;
|
||||
|
||||
public string? Email { get; init; }
|
||||
|
||||
public string Password { get; init; } = string.Empty;
|
||||
|
||||
public string ConfirmPassword { get; init; } = string.Empty;
|
||||
|
||||
public string? FirstName { get; init; }
|
||||
|
||||
public string? LastName { get; init; }
|
||||
|
||||
public bool IsEnabled { get; init; } = true;
|
||||
|
||||
public bool IsEmailVerified { get; init; }
|
||||
|
||||
public string? DisplayName { get; init; }
|
||||
|
||||
public string? Club { get; init; }
|
||||
|
||||
public string? City { get; init; }
|
||||
|
||||
public string? PreferredFormat { get; init; }
|
||||
|
||||
public string? FavoriteCube { get; init; }
|
||||
|
||||
public string? Bio { get; init; }
|
||||
}
|
||||
|
||||
public sealed record AdminIdentityUser(
|
||||
string Subject,
|
||||
string Username,
|
||||
@@ -113,4 +144,13 @@ public sealed record AdminIdentityUserUpdateRequest(
|
||||
bool IsEnabled,
|
||||
bool IsEmailVerified);
|
||||
|
||||
public sealed record AdminIdentityUserCreateRequest(
|
||||
string Username,
|
||||
string? Email,
|
||||
string Password,
|
||||
string? FirstName,
|
||||
string? LastName,
|
||||
bool IsEnabled,
|
||||
bool IsEmailVerified);
|
||||
|
||||
public sealed class AdminUserValidationException(string message) : Exception(message);
|
||||
|
||||
Reference in New Issue
Block a user