domain remove does not require password
This commit is contained in:
@@ -1697,10 +1697,9 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.removeMailDomain = function (domain, password, callback) {
|
||||
Client.prototype.removeMailDomain = function (domain, callback) {
|
||||
var config = {
|
||||
data: {
|
||||
password: password
|
||||
},
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
@@ -1725,17 +1724,16 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.removeDomain = function (domain, password, callback) {
|
||||
Client.prototype.removeDomain = function (domain, callback) {
|
||||
var config = {
|
||||
data: {
|
||||
password: password
|
||||
},
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
};
|
||||
|
||||
this.removeMailDomain(domain, password, function () {
|
||||
this.removeMailDomain(domain, function () {
|
||||
// hack: ignore errors until we fix the domains.js
|
||||
del('/api/v1/domains/' + domain, config, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user