User továbbgondolása
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user