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 =>