feat(Core): Changing max pass size (#1626)

This commit is contained in:
WiZZy
2019-03-26 16:33:51 +02:00
committed by Nefertumm
parent 1aa5ebc7bd
commit a06a869949
+5 -5
View File
@@ -22,7 +22,7 @@ namespace AccountMgr
return AOR_NAME_TOO_LONG; // username's too long return AOR_NAME_TOO_LONG; // username's too long
if (utf8length(password) > MAX_PASS_STR) if (utf8length(password) > MAX_PASS_STR)
return AccountOpResult::AOR_PASS_TOO_LONG; // password's too long return AOR_PASS_TOO_LONG; // password's too long
normalizeString(username); normalizeString(username);
normalizeString(password); normalizeString(password);
@@ -131,8 +131,8 @@ namespace AccountMgr
if (utf8length(newUsername) > MAX_ACCOUNT_STR) if (utf8length(newUsername) > MAX_ACCOUNT_STR)
return AOR_NAME_TOO_LONG; return AOR_NAME_TOO_LONG;
if (utf8length(newPassword) > MAX_ACCOUNT_STR) if (utf8length(newPassword) > MAX_PASS_STR)
return AOR_PASS_TOO_LONG; return AOR_PASS_TOO_LONG; // password's too long
normalizeString(newUsername); normalizeString(newUsername);
normalizeString(newPassword); normalizeString(newPassword);
@@ -158,10 +158,10 @@ namespace AccountMgr
return AOR_NAME_NOT_EXIST; // account doesn't exist return AOR_NAME_NOT_EXIST; // account doesn't exist
} }
if (utf8length(newPassword) > MAX_ACCOUNT_STR) if (utf8length(newPassword) > MAX_PASS_STR)
{ {
sScriptMgr->OnFailedEmailChange(accountId); sScriptMgr->OnFailedEmailChange(accountId);
return AOR_PASS_TOO_LONG; return AOR_PASS_TOO_LONG; // password's too long
} }
normalizeString(username); normalizeString(username);