aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Accounts/AccountMgr.cpp
diff options
context:
space:
mode:
authorDDuarte <dnpd.dd@gmail.com>2014-11-10 03:36:18 +0000
committerDDuarte <dnpd.dd@gmail.com>2014-11-10 03:36:18 +0000
commitac71c26e1c61b457a71281c5923b99c8b26884d8 (patch)
tree88e0d0d0887122ddacc6d56e8515a41655cb5cd6 /src/server/game/Accounts/AccountMgr.cpp
parentd36af78c7f1a7db690c9e06db7e2206a052b549a (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
Diffstat (limited to 'src/server/game/Accounts/AccountMgr.cpp')
-rw-r--r--src/server/game/Accounts/AccountMgr.cpp4
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;