settings: move externaldap setting
This commit is contained in:
@@ -1040,7 +1040,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.setExternalLdapConfig = function (config, callback) {
|
||||
post('/api/v1/settings/external_ldap_config', config, null, function (error, data, status) {
|
||||
post('/api/v1/external_ldap/config', config, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
@@ -1049,7 +1049,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.getExternalLdapConfig = function (callback) {
|
||||
get('/api/v1/settings/external_ldap_config', null, function (error, data, status) {
|
||||
get('/api/v1/external_ldap/config', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
@@ -2424,7 +2424,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.startExternalLdapSync = function (callback) {
|
||||
post('/api/v1/cloudron/sync_external_ldap', {}, null, function (error, data, status) {
|
||||
post('/api/v1/external_ldap/sync', {}, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 202) return callback(new ClientError(status, data));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user