diff options
author | DDuarte <dnpd.dd@gmail.com> | 2014-11-10 03:36:18 +0000 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2014-11-10 03:36:18 +0000 |
commit | ac71c26e1c61b457a71281c5923b99c8b26884d8 (patch) | |
tree | 88e0d0d0887122ddacc6d56e8515a41655cb5cd6 | |
parent | d36af78c7f1a7db690c9e06db7e2206a052b549a (diff) |
Core/AccountMgr: Fix two typos when checking length of password
No real change, both MAX_ACCOUNT_STR and MAX_PASS_STR are currently 16
-rw-r--r-- | src/server/game/Accounts/AccountMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Accounts/AccountMgr.cpp b/src/server/game/Accounts/AccountMgr.cpp index 41c1b0c7c87..55f19d1612e 100644 --- a/src/server/game/Accounts/AccountMgr.cpp +++ b/src/server/game/Accounts/AccountMgr.cpp @@ -154,7 +154,7 @@ AccountOpResult AccountMgr::ChangeUsername(uint32 accountId, std::string newUser if (utf8length(newUsername) > MAX_ACCOUNT_STR) return AccountOpResult::AOR_NAME_TOO_LONG; - if (utf8length(newPassword) > MAX_ACCOUNT_STR) + if (utf8length(newPassword) > MAX_PASS_STR) return AccountOpResult::AOR_PASS_TOO_LONG; Utf8ToUpperOnlyLatin(newUsername); @@ -181,7 +181,7 @@ AccountOpResult AccountMgr::ChangePassword(uint32 accountId, std::string newPass return AccountOpResult::AOR_NAME_NOT_EXIST; // account doesn't exist } - if (utf8length(newPassword) > MAX_ACCOUNT_STR) + if (utf8length(newPassword) > MAX_PASS_STR) { sScriptMgr->OnFailedPasswordChange(accountId); return AccountOpResult::AOR_PASS_TOO_LONG; |