mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 04:23:47 +00:00
fix(core): prevent unsupported-by-client passwords (#1547)
This commit is contained in:
committed by
Francesco Borzì
parent
0758677578
commit
b0d6b6ee70
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user