I want to login to my asp.net web application using fingerprint. That means I don't want to use any login id and password. I just want to login with my fingerprint. I have got a 3m cogent device and the device works fine but I don't know how to integrate the device with my software. I am using ActiveX.
My Javascript code is:
<script type="text/javascript">
$(document).ready(function () {
$('#scan').click(function () {
$('#dicscan').addClass('scanning');
setTimeout(function () {
$('#dicscan').removeClass('scanning');
}, 20 * 1000);
});
});
</script>
<script type="text/javascript">
function OpenActiveX() {
var port = document.getElementById("Comport");
port.Conopen = 1;
if (port.error > 0) //Display errors if found
alert(port.ErrorDescription);
}
function Matching() {
var retval = 0;
var port = document.getElementById("Comport");
port.Ksserialnumber = 1;
port.KsCapture = 1;
port.KsAuthenticationMatch = 1;
retval = port.KsMatchretvalue;
if (retval > 0) {
alert("Two fingers are Matched...");
window.open('ResultPage.html', '_self');
}
else {
alert("Finger Not Matched...");
}
if (port.error > 0) //Display errors if found
alert(port.ErrorDescription);
}
</script>
I am getting undefined in port.KsMatchretvalue.
I am using 3M Cogent CSD 200 model Finger Print reader device
Hope you have SDK already Below is a little code for this device to capture and match details to allow log in .
Two function here
1.] Capture - to save fingerprint
2.] Match - to match fingetprint at the time of log in
Note : its a code block from my application , you have to made adjustment according to your application