mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
server: fixed that it doesn't allow to use 3 characters names despite config settings
This commit is contained in:
parent
76ee34c9c0
commit
e270d1c450
1 changed files with 4 additions and 4 deletions
|
|
@ -153,11 +153,11 @@ public class Session {
|
||||||
if (userName.length() > config.getMaxUserNameLength()) {
|
if (userName.length() > config.getMaxUserNameLength()) {
|
||||||
return "User name may not be longer than " + config.getMaxUserNameLength() + " characters";
|
return "User name may not be longer than " + config.getMaxUserNameLength() + " characters";
|
||||||
}
|
}
|
||||||
if (userName.length() <= 3) {
|
if (userName.length() <= 2) {
|
||||||
return "User name is too short (3 characters or fewer)";
|
return "User name is too short (2 characters or fewer)";
|
||||||
}
|
}
|
||||||
if (userName.length() >= 500) {
|
if (userName.length() >= 250) {
|
||||||
return "User name is too long (500 characters or more)";
|
return "User name is too long (250 characters or more)";
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue