error handling if FR fails

This commit is contained in:
jojo aquino 2025-04-27 11:24:45 +01:00
parent fd325afe4f
commit 859b8771a5

View File

@ -111,10 +111,17 @@ namespace EnotaryoPH.Web.Pages
Status = false,
FacePlugins = []
};
try
{
var result = await client.VerifyAsync(faceVerificationRequest);
var faceMatches = result.Result.SelectMany(x => x.FaceMatches);
return faceMatches;
}
catch (Exception)
{
return Enumerable.Empty<FaceMatches>();
}
}
[BindProperty]
public string SelfieBase64Image { get; set; }