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".
9 lines
200 B
C#
9 lines
200 B
C#
namespace API.Contracts.Auth
|
|
{
|
|
public class LoginRequest
|
|
{
|
|
public string UserName { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
}
|
|
}
|