lemonldap-ng/lemonldap-ng-portal/site/htdocs/static/common/js/u2fcheck.js
2020-10-12 14:55:46 +02:00

23 lines
493 B
JavaScript

// Generated by CoffeeScript 1.12.8
/*
LemonLDAP::NG U2F verify script
*/
(function() {
var check;
check = function() {
return u2f.sign(window.datas.appId, window.datas.challenge, window.datas.registeredKeys, function(data) {
$('#verify-data').val(JSON.stringify(data));
$('#verify-challenge').val(window.datas.challenge);
return $('#verify-form').submit();
});
};
$(document).ready(function() {
return setTimeout(check, 1000);
});
}).call(this);