allow - and space in username

v1.18.x
Baris Soner Usakli 12 years ago
parent a0a1b14e2e
commit 6fbecd00b0

@ -91,7 +91,7 @@
},
isUserNameValid: function(name) {
return (name && name !== "" && (/^\w{3,14}$/.test(name)));
return (name && name !== "" && (/^[a-zA-Z0-9 _-]{3,14}$/.test(name)));
},
isPasswordValid: function(password) {

Loading…
Cancel
Save