token-validator: implement GLUE test

This commit is contained in:
nemunaire 2020-04-26 17:26:39 +02:00
parent e7d9b1c89f
commit 3a9623a6af
3 changed files with 96 additions and 2 deletions

View file

@ -422,6 +422,27 @@ angular.module("AdLinApp")
$scope.addOnUpdateEvent(updateGLUE);
})
.controller("GLUEController", function($scope, $http) {
var updateGLUE = function() {
$scope.GLUEpending = true;
$http({
method: 'POST',
url: "api/check/GLUE",
data: {domain: $scope.rr.domain, ip: $scope.rr.values.join("")}
}).then(function(response) {
$scope.GLUEpending = false;
$scope.GLUEok = response.data;
$scope.GLUEerr = "OK";
}, function(response) {
$scope.GLUEpending = false;
$scope.GLUEok = false;
$scope.GLUEerr = response.data.errmsg;
});
}
updateGLUE();
$scope.addOnUpdateEvent(updateGLUE);
})
.controller("DSDomainsController", function($scope, $http) {
var updateDS = function() {
$http({