Remove password requirement for app uninstall and restore

This commit is contained in:
Johannes Zellner
2019-05-13 23:31:45 +02:00
parent 7c2ea6288c
commit b67d5eec3d
3 changed files with 23 additions and 65 deletions

View File

@@ -398,8 +398,8 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.restoreApp = function (appId, backupId, password, callback) {
var data = { password: password, backupId: backupId };
Client.prototype.restoreApp = function (appId, backupId, callback) {
var data = { backupId: backupId };
post('/api/v1/apps/' + appId + '/restore', data, null, function (error, data, status) {
if (error) return callback(error);
@@ -420,8 +420,8 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.uninstallApp = function (appId, password, callback) {
var data = { password: password };
Client.prototype.uninstallApp = function (appId, callback) {
var data = {};
post('/api/v1/apps/' + appId + '/uninstall', data, null, function (error, data, status) {
if (error) return callback(error);