Na most van kész a 2 faktoros authentikáció ! :)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user