From ac71c26e1c61b457a71281c5923b99c8b26884d8 Mon Sep 17 00:00:00 2001 From: DDuarte Date: Mon, 10 Nov 2014 03:36:18 +0000 Subject: Core/AccountMgr: Fix two typos when checking length of password No real change, both MAX_ACCOUNT_STR and MAX_PASS_STR are currently 16 --- src/server/game/Accounts/AccountMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3