merged.. conflicted up the ass. registration looks gud again

This commit is contained in:
psychobunny
2013-08-29 03:01:58 +08:00
21 changed files with 562 additions and 339 deletions

View File

@@ -91,11 +91,11 @@
},
isUserNameValid: function(name) {
return (name && name !== "" && (/^[a-zA-Z0-9 _-]{3,14}$/.test(name)));
return (name && name !== "" && (/^[a-zA-Z0-9 _-]+$/.test(name)));
},
isPasswordValid: function(password) {
return password && password.indexOf(' ') === -1 && password.length > 5;
return password && password.indexOf(' ') === -1;
},
// Blatently stolen from: http://phpjs.org/functions/strip_tags/