
app.controller("editarUtController", function ($scope,httpRequestFactory) {
        $scope.tabActiva = [];

        $scope.tabActiva[0] = true;
        $scope.tabActiva[1] = false;

        $scope.mostrarTab = function (indice) {
            $scope.tabActiva[0] = false;
            $scope.tabActiva[1] = false;
            $scope.tabActiva[indice] = true;
            
        };
        
        $scope.trancar = false;
        $scope.checkIsLDAP = function () {
            
            var getSuccessCallback = function (data, status) {
                $scope.trancar = data;
            };

            var errorCallback = function (data, status, headers, config) {
                $scope.trancar = true;
                
            };

            
            httpRequestFactory.getData('../api/login/ldap').success(getSuccessCallback).error(errorCallback);
            
        };

        
    });