Add auth controller/DTOs and update seed password

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".
This commit is contained in:
Jonas
2026-04-18 22:04:51 +02:00
parent ffaf5d24c1
commit fc99c91bd8
4 changed files with 91 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
namespace API.Contracts.Auth
{
public class LoginRequest
{
public string UserName { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
}