1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-08-20 05:27:38 +00:00

limit user name to 20 chars

This commit is contained in:
exane
2015-07-05 10:02:55 +02:00
parent b9daf667c3
commit 41ac09c59c
2 changed files with 4 additions and 1 deletions
client/js
server

@@ -51,6 +51,7 @@ var User = (function(){
}
r.setName = function(name) {
name = name.slice(0, 20);
console.log("user name changed from %s to %s", this._name, name);
this._name = name;
}