fc99c91bd8
Introduce authentication API: add AuthController with login, logout and me endpoints using SignInManager/UserManager; add LoginRequest and CurrentUserResponse DTOs. Login enforces active users, updates UpdatedAt on success, and returns localized messages. Also change default seed admin password from "Hoard" to "HoardPassword".
12 lines
321 B
C#
12 lines
321 B
C#
namespace API.Contracts.Auth
|
|
{
|
|
public class CurrentUserResponse
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string UserName { get; set; } = string.Empty;
|
|
public bool IsAdmin { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public bool MustChangePassword { get; set; }
|
|
}
|
|
}
|