Merge pull request #1801 from MrTimscampi/json-stringify

Use JSON when POSTing data
This commit is contained in:
dkanada 2020-08-15 11:30:29 +09:00 committed by GitHub
commit b761203739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 15 deletions

View file

@ -23,10 +23,10 @@ function submit(form) {
const apiClient = getApiClient();
apiClient.ajax({
type: 'POST',
data: {
data: JSON.stringify({
Name: form.querySelector('#txtUsername').value,
Password: form.querySelector('#txtManualPassword').value
},
}),
url: apiClient.getUrl('Startup/User')
}).then(onUpdateUserComplete);
}