[+] Support email login

This commit is contained in:
Hykilpikonna
2019-11-10 17:14:43 -05:00
parent 82ad8f026b
commit 19203f3629
+3
View File
@@ -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 =>