Skip to content

Commit

Permalink
Send PATCH instead of DELETE
Browse files Browse the repository at this point in the history
    -because google
  • Loading branch information
mfraezz committed Aug 25, 2016
1 parent 5ac4c83 commit 19e7300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions website/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,9 @@ def make_url_map(app):

Rule(
'/profile/logins/',
'delete',
'patch',
profile_views.delete_external_identity,
json_renderer
json_renderer,
),

Rule(
Expand Down
2 changes: 1 addition & 1 deletion website/static/js/accountSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ var ExternalIdentityViewModel = oop.defclass({
'delete': '/api/v1/profile/logins/'
},
_removeIdentity: function(identity) {
var request = $osf.ajaxJSON('DELETE', this.urls.delete, {'data': {'identity': identity}});
var request = $osf.ajaxJSON('PATCH', this.urls.delete, {'data': {'identity': identity}});
request.done(function() {
$osf.growl('Success', 'You have revoked this connected identity.', 'success');
window.location.reload();
Expand Down

0 comments on commit 19e7300

Please sign in to comment.