lemonldap-ng/lemonldap-ng-portal/site/htdocs/static/common/js/u2fcheck.js
2019-03-25 21:46:17 +01: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);