{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/114","repository_url":"https://api.github.com/repos/ga-wdi-boston/game-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/114/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/114/events","html_url":"https://github.com/ga-wdi-boston/game-project/issues/114","id":146613735,"number":114,"title":"Structure that the API expects for PW change","user":{"login":"louarnos","id":17519351,"avatar_url":"https://avatars.githubusercontent.com/u/17519351?v=3","gravatar_id":"","url":"https://api.github.com/users/louarnos","html_url":"https://github.com/louarnos","followers_url":"https://api.github.com/users/louarnos/followers","following_url":"https://api.github.com/users/louarnos/following{/other_user}","gists_url":"https://api.github.com/users/louarnos/gists{/gist_id}","starred_url":"https://api.github.com/users/louarnos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louarnos/subscriptions","organizations_url":"https://api.github.com/users/louarnos/orgs","repos_url":"https://api.github.com/users/louarnos/repos","events_url":"https://api.github.com/users/louarnos/events{/privacy}","received_events_url":"https://api.github.com/users/louarnos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T12:56:02Z","updated_at":"2016-04-07T13:07:50Z","closed_at":null,"body":"I'm confused about the structure that the API expects for the PW change. The documentation just says old and new. I've tried it a number of different ways and keep getting a 400 response saying \"No access control origin is present on the requested resource.\" I don't believe its my header because the same format worked on my sign out and update game.\r\n\r\n```\r\nconst changePw2 = (success, failure, data) => {\r\n  $.ajax({\r\n    method: 'PATCH',\r\n    url: 'http://tic-tac-toe.wdibos.com/' + 'change-password/' + user2.user.id,\r\n    data,\r\n    headers: {\r\n      Authorization: 'Token token=' + user2.user.token,\r\n    },\r\n  })\r\n  .done(success)\r\n  .fail(failure);\r\n};\r\n\r\nconst changePw1 = (success, failure, data) => {\r\n  $.ajax({\r\n    method: 'PATCH',\r\n    url: 'http://tic-tac-toe.wdibos.com/' + 'change-password/' + user1.user.id,\r\n    data,\r\n    headers: {\r\n      Authorization: 'Token token=' + user1.user.token,\r\n    },\r\n  })\r\n  .done(success)\r\n  .fail(failure);\r\n};\r\n\r\n```\r\n\r\nI've tried manually putting the data in this format as well:\r\n\r\n```\r\ndata : {\r\n     \"old\": ____\r\n     \"new\": _____\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/comments/206889867","html_url":"https://github.com/ga-wdi-boston/game-project/issues/114#issuecomment-206889867","issue_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/114","id":206889867,"user":{"login":"RDegnen","id":8826469,"avatar_url":"https://avatars.githubusercontent.com/u/8826469?v=3","gravatar_id":"","url":"https://api.github.com/users/RDegnen","html_url":"https://github.com/RDegnen","followers_url":"https://api.github.com/users/RDegnen/followers","following_url":"https://api.github.com/users/RDegnen/following{/other_user}","gists_url":"https://api.github.com/users/RDegnen/gists{/gist_id}","starred_url":"https://api.github.com/users/RDegnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDegnen/subscriptions","organizations_url":"https://api.github.com/users/RDegnen/orgs","repos_url":"https://api.github.com/users/RDegnen/repos","events_url":"https://api.github.com/users/RDegnen/events{/privacy}","received_events_url":"https://api.github.com/users/RDegnen/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T13:07:50Z","updated_at":"2016-04-07T13:07:50Z","body":"The changepw action expects a PATCH of `passwords` specifying the `old` and `new`. \r\n\r\nI looks like it does"}}