Add initial ghost creation UI
This commit is contained in:
@@ -1882,6 +1882,19 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.setGhost = function (userId, password, expiresAt, callback) {
|
||||
var data = { password };
|
||||
|
||||
if (expiresAt) data.expiresAt = expiresAt;
|
||||
|
||||
post('/api/v1/users/' + userId + '/ghost', data, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 204) return callback(new ClientError(status, data));
|
||||
|
||||
callback(null);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.startExternalLdapSync = function (callback) {
|
||||
post('/api/v1/cloudron/sync_external_ldap', {}, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user