From cbeb1a61fcda734ddd7b7162d7bca6786bbfcc6a Mon Sep 17 00:00:00 2001 From: "ADEBISI, Foluso A. (Dell-XPS)" Date: Wed, 8 Dec 2021 17:36:11 +0100 Subject: [PATCH] Fix: Send only blob to API server. --- public/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/app.js b/public/app.js index 318030a..2ebcd17 100644 --- a/public/app.js +++ b/public/app.js @@ -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 }