Skip to content

Commit

Permalink
Merge pull request #7034 from rtibbles/post_hoc_fix
Browse files Browse the repository at this point in the history
Add explicit post method to device provision call.
  • Loading branch information
jonboiser authored Jun 11, 2020
2 parents b428c0c + 9629542 commit 9b29c12
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ export default {

store.commit('SET_LOADING', true);

return client({ url: urls['kolibri:core:deviceprovision'](), data: onboardingData }).then(
return client({
url: urls['kolibri:core:deviceprovision'](),
data: onboardingData,
method: 'post',
}).then(
response => {
superuser.facility = response.data.facility.id;
store.dispatch('kolibriLogin', superuser);
Expand Down

0 comments on commit 9b29c12

Please sign in to comment.