Pass allowlist for exposed directory server

This commit is contained in:
Johannes Zellner
2021-11-26 10:44:10 +01:00
parent a5d34306e5
commit 1efdb846f3

View File

@@ -704,6 +704,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
if (error) return console.error('Unable to get exposed ldap config.', error);
$scope.exposedLdapConfig.enabled = !!result.enabled;
$scope.exposedLdapConfig.allowlist = result.allowlist;
});
},
@@ -713,7 +714,8 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.exposedLdapConfig.success = false;
var data = {
enabled: $scope.exposedLdapConfig.enabled
enabled: $scope.exposedLdapConfig.enabled,
allowlist: $scope.exposedLdapConfig.allowlist
};
Client.setExposedLdapConfig(data, function (error) {