token-validator: implement GLUE test
This commit is contained in:
parent
e7d9b1c89f
commit
3a9623a6af
3 changed files with 96 additions and 2 deletions
|
@ -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({
|
||||
|
|
Reference in a new issue