feat: add employer authentication method and view model to registration workflow

This commit is contained in:
MahanCh
2025-08-27 16:34:55 +03:30
parent f82d0d5925
commit 4bc3fd2fbc
3 changed files with 118 additions and 2 deletions

View File

@@ -58,5 +58,18 @@ namespace ServiceHost.Areas.Admin.Controllers
var result = await _workshopApplication.CreateWorkshopWorkflowRegistration(command);
return result;
}
[HttpPost("auth-employer")]
public async Task<ActionResult<OperationResult<AuthenticateUserViewModel>>> AuthenticateEmployer(AuthenticateEmployerWorkflowRequest command)
{
var result = await _employerApplication.AuthenticateEmployer(command.NationalCode, command.DateOfBirth, command.Mobile);
return result;
}
}
public class AuthenticateEmployerWorkflowRequest
{
public string NationalCode { get; set; }
public string DateOfBirth { get; set; }
public string Mobile { get; set; }
}
}