FIX: better error text in LoginScene
This commit is contained in:
parent
e342096029
commit
679b5b6b79
@ -41,7 +41,7 @@ export class LoginScene extends ResizableScene {
|
||||
}
|
||||
pErrorElement.innerHTML = '';
|
||||
if(inputElement.value && !isUserNameValid(inputElement.value)){
|
||||
pErrorElement.innerHTML = 'Invalid user name: only letters and numbers are allowed. No spaces.';
|
||||
pErrorElement.innerHTML = 'Invalid user name: No spaces are allowed.';
|
||||
}
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user