b29d174141
Introduce ChangeUserRequest DTO (UserName, IsActive) and add UpdateAppUser action to AppUserController. The new endpoint allows updating a user's username and active state, trims and validates the username, checks for duplicates, updates the Identity security stamp when deactivating to invalidate sessions, and returns appropriate success or error responses.
9 lines
173 B
C#
9 lines
173 B
C#
namespace API.Contracts.Auth
|
|
{
|
|
public class ChangeUserRequest
|
|
{
|
|
public string? UserName { get; set; }
|
|
public bool? IsActive { get; set; }
|
|
}
|
|
}
|