This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
isleward
mirror of
https://gitlab.com/Isleward/isleward.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
203
Wiki
Activity
Browse Source
Merge branch 'issue-43' into 'staging'
Issue 43 See merge request
!24
tags/v0.1.2
Big Bad Waffle
7 years ago
parent
f3fec52d7e
329b03b393
commit
5a8b067d3b
2 changed files
with
9 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/server/components/auth.js
+4
-1
src/server/misc/messages.js
+ 5
- 0
src/server/components/auth.js
View File
@@ -282,6 +282,11 @@ define([
createCharacter: function(msg) {
var data = msg.data;
if ((data.name.length < 3) || (data.name.length > 12)) {
msg.callback(messages.createCharacter.nameLength);
return;
}
io.get({
ent: data.name,
field: 'character',
+ 4
- 1
src/server/misc/messages.js
View File
@@ -10,6 +10,9 @@ define([
illegal: 'illegal characters in username/password',
incorrect: 'invalid username and password',
charExists: 'character name is taken'
}
},
createCharacter: {
nameLength: 'name must be between 3 and 12 characters'
}
};
});
Write
Preview
Loading…
Cancel
Save