profile updates must be POST
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user