Removed unused changePassword()
changePassword in api-utils.js is no longer used.
https://github.com/openbmc/phosphor-webui/commit/28711a6ad2cff8277bfa537c3b140caf690ab575
removed the use of it.
28711a6 moved us over to multiple user account management and has
its own function to set the user's password (setUserPassword).
Change-Id: I4ac4175a33b10f2ae4f89b5e83d6c3ffa2b09912
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 09e2690..9e458aa 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -495,37 +495,6 @@
console.log(error);
});
},
- changePassword: function(user, newPassword) {
- if (DataService.configJson.redfishSupportEnabled == true) {
- return $http({
- method: 'PATCH',
- url: DataService.getHost() +
- '/redfish/v1/AccountService/Accounts/' + user,
- withCredentials: true,
- data: JSON.stringify({'Password': newPassword})
- });
- } else {
- var deferred = $q.defer();
- $http({
- method: 'POST',
- url: DataService.getHost() + '/xyz/openbmc_project/user/' + user +
- '/action/SetPassword',
- withCredentials: true,
- data: JSON.stringify({'data': [newPassword]}),
- responseType: 'arraybuffer'
- })
- .then(
- function(response, status, headers) {
- deferred.resolve(
- {data: response, status: status, headers: headers});
- },
- function(error) {
- console.log(error);
- deferred.reject(error);
- });
- return deferred.promise;
- }
- },
getAccountServiceRoles: function() {
var roles = [];