Fix usage of the password change route in webadmin

This commit is contained in:
Johannes Zellner
2016-05-02 14:11:37 +02:00
parent 5945bce00e
commit 9042e9e1a9

View File

@@ -619,7 +619,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
newPassword: newPassword
};
$http.post(client.apiOrigin + '/api/v1/profile/' + this._userInfo.id + '/password', data).success(function(data, status) {
$http.put(client.apiOrigin + '/api/v1/profile/password', data).success(function(data, status) {
if (status !== 204) return callback(new ClientError(status, data));
callback(null, data);
}).error(defaultErrorHandler(callback));