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
Fixes
#43
tags/v0.1.2
Big Bad Waffle
7 years ago
parent
f3fec52d7e
commit
a3377409f5
3 changed files
with
545 additions
and
305 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/server/components/auth.js
+536
-304
src/server/config/maps/city/map.json
+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',
+ 536
- 304
src/server/config/maps/city/map.json
File diff suppressed because it is too large
View File
+ 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