From 5f7a564b336a62353e38091ac3c88c9f6e8ff140 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 25 May 2020 21:33:15 -0400 Subject: [PATCH] [+] Add check for blank usernames --- src/components/login/login.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/login/login.ts b/src/components/login/login.ts index 81b6a25..ef44887 100644 --- a/src/components/login/login.ts +++ b/src/components/login/login.ts @@ -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, '');