[+] Add check for blank usernames
This commit is contained in:
@@ -61,6 +61,11 @@ export default class Login extends Vue
|
|||||||
*/
|
*/
|
||||||
loginClick()
|
loginClick()
|
||||||
{
|
{
|
||||||
|
// Simple checks
|
||||||
|
if (this.username == '')
|
||||||
|
{
|
||||||
|
this.error = 'Username cannot be blank 🤔';
|
||||||
|
}
|
||||||
|
|
||||||
// Format it
|
// Format it
|
||||||
this.username = this.username.toLowerCase().replace(/ /g, '').replace(/@.*/g, '');
|
this.username = this.username.toLowerCase().replace(/ /g, '').replace(/@.*/g, '');
|
||||||
|
|||||||
Reference in New Issue
Block a user