diff options
author | Shauren <shauren.trinity@gmail.com> | 2014-06-27 00:35:47 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2014-06-27 00:35:47 +0200 |
commit | 21687aa85709d4909d41fd93909a00b18b940237 (patch) | |
tree | d373f9c50e73d74425fe0707e48f6a9291a9ba88 /src/server/game/Accounts/BattlenetAccountMgr.cpp | |
parent | e97b6e6403704384968331c157be287acc6a4015 (diff) |
Core/Battle.net: Fixed password change prepared statement
Diffstat (limited to 'src/server/game/Accounts/BattlenetAccountMgr.cpp')
-rw-r--r-- | src/server/game/Accounts/BattlenetAccountMgr.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Accounts/BattlenetAccountMgr.cpp b/src/server/game/Accounts/BattlenetAccountMgr.cpp index 00cf1f88298..5b419535c11 100644 --- a/src/server/game/Accounts/BattlenetAccountMgr.cpp +++ b/src/server/game/Accounts/BattlenetAccountMgr.cpp @@ -55,9 +55,8 @@ AccountOpResult Battlenet::AccountMgr::ChangePassword(uint32 accountId, std::str return AccountOpResult::AOR_PASS_TOO_LONG; PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_BNET_PASSWORD); - stmt->setString(0, username); - stmt->setString(1, CalculateShaPassHash(username, newPassword)); - stmt->setUInt32(2, accountId); + stmt->setString(0, CalculateShaPassHash(username, newPassword)); + stmt->setUInt32(1, accountId); LoginDatabase.Execute(stmt); return AccountOpResult::AOR_OK; |