fix(core): prevent unsupported-by-client passwords (#1547)

This commit is contained in:
Ercules76
2019-03-07 22:20:02 +01:00
committed by Francesco Borzì
parent 0758677578
commit b0d6b6ee70
5 changed files with 18 additions and 1 deletions

View File

@@ -21,6 +21,9 @@ namespace AccountMgr
if (utf8length(username) > MAX_ACCOUNT_STR)
return AOR_NAME_TOO_LONG; // username's too long
if (utf8length(password) > MAX_PASS_STR)
return AccountOpResult::AOR_PASS_TOO_LONG; // password's too long
normalizeString(username);
normalizeString(password);