Add ability to trigger external ldap syncer task
This commit is contained in:
@@ -1379,6 +1379,15 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.startExternalLdapSync = function (callback) {
|
||||
post('/api/v1/cloudron/sync_external_ldap', {}, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 202) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.setUserActive = function (userId, active, callback) {
|
||||
var data = {
|
||||
active: active
|
||||
|
||||
Reference in New Issue
Block a user