Files
Hoard/API/Contracts/Auth/ChangeUserRequest.cs
Jonas 178bc8731e Add admin user creation & must-change flag
Add server and UI support for creating admin users and forcing password change. API: introduce CreateUserRequest contract and add CreateNewAppUser endpoint in AppUserController; extend ChangeUserRequest with MustChangePassword and handle role assignment and detailed error responses (409/422/400). Frontend: new CreateUserDialog component, integrate it into AdminUsers list, and add createAdminUser service with CreateAdminUserError and payload handling; include mustChangePassword in update payloads and EditUserDialog. UI polish: enhanced app banner enter/leave animations in Layout.vue and add auto-dismiss timers/cleanup to appBanners store to limit and auto-remove banners.
2026-05-03 15:56:28 +02:00

10 lines
227 B
C#

namespace API.Contracts.Auth
{
public class ChangeUserRequest
{
public string? UserName { get; set; }
public bool? IsActive { get; set; }
public bool? MustChangePassword { get; set; }
}
}