From 8860c88b1ae492eda420e0719587b565db68213f Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 7 Sep 2019 09:09:50 -0400 Subject: [PATCH] [F] Fix HTTP GET can't have body --- src/components/login/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/login/login.ts b/src/components/login/login.ts index d9bda7f..a4ec4fc 100644 --- a/src/components/login/login.ts +++ b/src/components/login/login.ts @@ -25,7 +25,7 @@ export default class Login extends Vue // Fetch request TODO: Add username and password when the https server is ready. fetch(`${Constants.API_URL}/api/login`, - {body: JSON.stringify({username: this.username, password: this.password})}) + {method: 'POST', body: JSON.stringify({username: this.username, password: this.password})}) .then(res => { // Get response body text