Na most van kész a 2 faktoros authentikáció ! :)

This commit is contained in:
2025-04-10 23:32:36 +02:00
parent aca0a86a6a
commit 9d107e8c0b
6 changed files with 218 additions and 25 deletions
@@ -183,7 +183,7 @@ namespace WorkFlowCheck.API.Controllers
try
{
var response = await _userService.Authenticate2F1(userSimpleDTO.UserName, userSimpleDTO.Password);
if (response != null)
if (!string.IsNullOrEmpty(response))
{
retVal.IsSuccess = true;
retVal.Data = response;
@@ -222,9 +222,9 @@ namespace WorkFlowCheck.API.Controllers
}
try
{
var userDTO_Response = await _userService.Authenticate2F2(user2FADTO.UserName,
user2FADTO.Password,
user2FADTO.Code,
var userDTO_Response = await _userService.Authenticate2F2(user2FADTO.UserName,
user2FADTO.Password,
user2FADTO.Code,
user2FADTO.Token2FA);
if (userDTO_Response != null)
{