Fix: Send only blob to API server.

This commit is contained in:
2021-12-08 17:36:11 +01:00
parent eec76917bf
commit cbeb1a61fc
+6
View File
@@ -114,6 +114,12 @@ var app = new Vue({
fingerprint: this.fingerDetails[finger].fingerprint
}
});
if (fingerprints.length < 2) {
swal("Oops!", 'Please capture the two fingers for this profile.', "error");
return;
}
var { data } = await axios.post(
this.authenticateUrl(`/uc/fingerprints/${this.staff.reference}`),
{ fingerprints }