profile updates must be POST

This commit is contained in:
Girish Ramakrishnan
2016-06-02 00:31:41 -07:00
parent 4fcc7fe99f
commit 60ce6b69ee
4 changed files with 20 additions and 20 deletions

View File

@@ -676,7 +676,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
newPassword: newPassword
};
$http.put(client.apiOrigin + '/api/v1/profile/password', data).success(function(data, status) {
$http.post(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));
@@ -822,7 +822,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
Client.prototype.setShowTutorial = function (show, callback) {
var data = { showTutorial: show };
$http.put(client.apiOrigin + '/api/v1/profile/tutorial', data).success(function (data, status) {
$http.post(client.apiOrigin + '/api/v1/profile/tutorial', data).success(function (data, status) {
if (status !== 204) return callback(new ClientError(status, data));
callback(null);
}).error(defaultErrorHandler(callback));