projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow hyphen in username on server side + add icons for navigation
[vchess.git]
/
server
/
models
/
User.js
diff --git
a/server/models/User.js
b/server/models/User.js
index
5117c17
..
3b88850
100644
(file)
--- a/
server/models/User.js
+++ b/
server/models/User.js
@@
-20,7
+20,7
@@
const UserModel =
checkNameEmail: function(o)
{
return (
- (!o.name || o.name.match(/^[\w]+$/)) &&
+ (!o.name || o.name.match(/^[\w
-
]+$/)) &&
(!o.email || o.email.match(/^[\w.+-]+@[\w.+-]+$/))
);
},