From 19203f36296d5162c3e1f4af8d8b4cd60b6dbd7d Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 10 Nov 2019 17:14:43 -0500 Subject: [PATCH] [+] Support email login --- src/components/login/login.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/login/login.ts b/src/components/login/login.ts index 417a925..d287e10 100644 --- a/src/components/login/login.ts +++ b/src/components/login/login.ts @@ -68,6 +68,9 @@ export default class Login extends Vue // Make login button loading this.loading = true; + // Format it + this.username = this.username.toLowerCase().replace(/ /g, '').replace(/@.*/g, ''); + // Fetch request App.http.post('/login', {username: this.username, password: this.password}) .then(response =>