[+] Add check for blank usernames

This commit is contained in:
Hykilpikonna
2020-05-25 21:33:15 -04:00
parent 0de22d4f0d
commit 5f7a564b33
+5
View File
@@ -61,6 +61,11 @@ export default class Login extends Vue
*/
loginClick()
{
// Simple checks
if (this.username == '')
{
this.error = 'Username cannot be blank 🤔';
}
// Format it
this.username = this.username.toLowerCase().replace(/ /g, '').replace(/@.*/g, '');