178bc8731e
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.
11 lines
298 B
C#
11 lines
298 B
C#
namespace API.Contracts.Auth
|
|
{
|
|
public class CreateUserRequest
|
|
{
|
|
public required string UserName { get; set; }
|
|
public required string StartPassword { get; set; }
|
|
public bool IsAdmin { get; set; } = false;
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|