Merge branch 'v0.12.7-hotfix'

This commit is contained in:
Johannes Zellner
2016-05-02 17:34:56 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -633,7 +633,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));