mm-math 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -0
- package/index.html +2 -2
- package/package.json +1 -1
package/api.js
CHANGED
package/index.html
CHANGED
|
@@ -538,8 +538,8 @@ async function doLogin() {
|
|
|
538
538
|
try {
|
|
539
539
|
const res = await fetch(API_BASE + '/api/login', {
|
|
540
540
|
method: 'POST',
|
|
541
|
-
headers: { 'Content-Type': 'application/
|
|
542
|
-
body:
|
|
541
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
542
|
+
body: new URLSearchParams({ username, password }),
|
|
543
543
|
});
|
|
544
544
|
const data = await res.json();
|
|
545
545
|
|