User továbbgondolása

This commit is contained in:
2025-03-17 12:10:41 +01:00
parent 0e06382eee
commit 8c1e60889d
11 changed files with 306 additions and 44 deletions
@@ -12,7 +12,7 @@ namespace WorkFlowCheck.Web.Pages.Account
private readonly IUserService _userService;
[BindProperty]
public UserDTO UserDTO { get; set; }
public UserDTO UserSimpleDTO { get; set; }
public string ErrorMessage { get; set; }
public LoginModel(IUserService userService)
@@ -25,7 +25,7 @@ namespace WorkFlowCheck.Web.Pages.Account
}
public async Task<IActionResult> OnPostAsync()
{
var response = await _userService.Authenticate(UserDTO.UserName, UserDTO.Password);
var response = await _userService.Authenticate(UserSimpleDTO.UserName, UserSimpleDTO.Password);
if (response.IsSuccess)
{