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:
@@ -20,7 +20,7 @@ namespace API.Services
|
||||
}
|
||||
|
||||
var adminUserName = configuration["SeedAdmin:UserName"] ?? "admin";
|
||||
var adminPassword = configuration["SeedAdmin:Password"] ?? "Hoard";
|
||||
var adminPassword = configuration["SeedAdmin:Password"] ?? "HoardPassword";
|
||||
var adminEmail = configuration["SeedAdmin:Email"];
|
||||
|
||||
var admin = new AppUser
|
||||
|
||||
Reference in New Issue
Block a user