domain remove does not require password

This commit is contained in:
Girish Ramakrishnan
2019-05-20 18:41:08 -07:00
parent a80c21d77f
commit 23b72620a1
3 changed files with 6 additions and 29 deletions

View File

@@ -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);