error handling if FR fails
This commit is contained in:
parent
fd325afe4f
commit
859b8771a5
@ -111,10 +111,17 @@ namespace EnotaryoPH.Web.Pages
|
|||||||
Status = false,
|
Status = false,
|
||||||
FacePlugins = []
|
FacePlugins = []
|
||||||
};
|
};
|
||||||
|
try
|
||||||
|
{
|
||||||
var result = await client.VerifyAsync(faceVerificationRequest);
|
var result = await client.VerifyAsync(faceVerificationRequest);
|
||||||
var faceMatches = result.Result.SelectMany(x => x.FaceMatches);
|
var faceMatches = result.Result.SelectMany(x => x.FaceMatches);
|
||||||
return faceMatches;
|
return faceMatches;
|
||||||
}
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return Enumerable.Empty<FaceMatches>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[BindProperty]
|
[BindProperty]
|
||||||
public string SelfieBase64Image { get; set; }
|
public string SelfieBase64Image { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user