S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Registrovat se
Přihlásit se
gitlord
/
isleward
zrcadlo
https://gitlab.com/Isleward/isleward.git
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Vydání
203
Wiki
Aktivita
Procházet zdrojové kódy
Merge branch 'issue-43' into 'staging'
Issue 43 See merge request
!24
tags/v0.1.2
Big Bad Waffle
před 7 roky
rodič
f3fec52d7e
329b03b393
revize
5a8b067d3b
2 změnil soubory
, kde provedl
9 přidání
a
1 odebrání
Rozdělené zobrazení
Diff Options
Zobrazit statistiky
Stáhněte soubor opravy
Stáhněte rozdílový soubor
+5
-0
src/server/components/auth.js
+4
-1
src/server/misc/messages.js
+ 5
- 0
src/server/components/auth.js
Zobrazit soubor
@@ -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
Zobrazit soubor
@@ -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'
}
};
});
Zapsat
Náhled
Načítá se…
Zrušit
Uložit