allow - and space in username

This commit is contained in:
Baris Soner Usakli
2013-07-31 13:00:32 -04:00
parent a0a1b14e2e
commit 6fbecd00b0

View File

@@ -91,7 +91,7 @@
}, },
isUserNameValid: function(name) { 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) { isPasswordValid: function(password) {