From b67d5eec3d15829d18b079d7cd8f4cc8e092a55b Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 13 May 2019 23:31:45 +0200 Subject: [PATCH] Remove password requirement for app uninstall and restore --- src/js/client.js | 8 +++---- src/views/apps.html | 52 ++++++++++++--------------------------------- src/views/apps.js | 28 +++++------------------- 3 files changed, 23 insertions(+), 65 deletions(-) diff --git a/src/js/client.js b/src/js/client.js index 44847afcf..e76bf8c27 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -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); diff --git a/src/views/apps.html b/src/views/apps.html index 0e916790a..dd6b92060 100644 --- a/src/views/apps.html +++ b/src/views/apps.html @@ -256,16 +256,6 @@
-
-
-
- -
Wrong password
- -
- -
-
@@ -334,7 +324,7 @@ @@ -431,34 +421,20 @@