feat: add employer authentication method and view model to registration workflow
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user