lemonldap-ng/lemonldap-ng-portal/site/htdocs/static/common/js/kerberosChoice.js
Christophe Maudoux 4a0b092e7c make json
2020-01-15 22:12:02 +01:00

21 lines
458 B
JavaScript

// Generated by CoffeeScript 1.12.7
(function() {
$(document).ready(function() {
return $.ajax(portal + '?kerberos=1', {
dataType: 'json',
statusCode: {
401: function() {
return $('#lformKerberos').submit();
}
},
success: function(data) {
return $('#lformKerberos').submit();
},
error: function() {
return $('#lformKerberos').submit();
}
});
});
}).call(this);