[+] Support email login
This commit is contained in:
@@ -68,6 +68,9 @@ export default class Login extends Vue
|
|||||||
// Make login button loading
|
// Make login button loading
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
|
// Format it
|
||||||
|
this.username = this.username.toLowerCase().replace(/ /g, '').replace(/@.*/g, '');
|
||||||
|
|
||||||
// Fetch request
|
// Fetch request
|
||||||
App.http.post('/login', {username: this.username, password: this.password})
|
App.http.post('/login', {username: this.username, password: this.password})
|
||||||
.then(response =>
|
.then(response =>
|
||||||
|
|||||||
Reference in New Issue
Block a user