Add user update endpoint and DTO

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.
This commit is contained in:
Jonas
2026-05-01 15:22:42 +02:00
parent 7e2ca4c9e2
commit b29d174141
2 changed files with 66 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
namespace API.Contracts.Auth
{
public class ChangeUserRequest
{
public string? UserName { get; set; }
public bool? IsActive { get; set; }
}
}