Merge pull request #1089 from thecodingmachine/fixLoginError
FIX: better error text in LoginScene
This commit is contained in:
commit
bc67817d64
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export class LoginScene extends ResizableScene {
|
||||||
}
|
}
|
||||||
pErrorElement.innerHTML = '';
|
pErrorElement.innerHTML = '';
|
||||||
if(inputElement.value && !isUserNameValid(inputElement.value)){
|
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') {
|
if (event.key === 'Enter') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue