diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-06 16:04:10 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-05 13:29:21 +0100 |
commit | e0e3bae82cfb6c70ba810997104054ab6ca77e99 (patch) | |
tree | 33c02a81521514ffe392e27dcccd13a49b0fcb69 /src/server/game/Accounts/AccountMgr.cpp | |
parent | 3bf33628fc4833e8682f96c679982200fcbd1674 (diff) |
Core/Authserver: Removal of sha_pass_hash, compatibility fields, and everything that uses them (PR #25156)
(cherry picked from commit bcdbdd6f23ce65cc0e381e61d2840140dce79311)
Diffstat (limited to 'src/server/game/Accounts/AccountMgr.cpp')
-rw-r--r-- | src/server/game/Accounts/AccountMgr.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/server/game/Accounts/AccountMgr.cpp b/src/server/game/Accounts/AccountMgr.cpp index bb7434a49f3..ce517bb470b 100644 --- a/src/server/game/Accounts/AccountMgr.cpp +++ b/src/server/game/Accounts/AccountMgr.cpp @@ -160,13 +160,6 @@ AccountOpResult AccountMgr::DeleteAccount(uint32 accountId) return AccountOpResult::AOR_OK; } -// Do not use this. Use the appropriate methods on Trinity::Crypto::SRP6 to do whatever you are trying to do. -// See issue #25157. -static std::string CalculateShaPassHash_DEPRECATED_DONOTUSE(std::string const& name, std::string const& password) -{ - return ByteArrayToHexStr(Trinity::Crypto::SHA1::GetDigestOf(name, ":", password)); -} - AccountOpResult AccountMgr::ChangeUsername(uint32 accountId, std::string newUsername, std::string newPassword) { // Check if accounts exists @@ -198,14 +191,6 @@ AccountOpResult AccountMgr::ChangeUsername(uint32 accountId, std::string newUser stmt->setUInt32(2, accountId); LoginDatabase.Execute(stmt); - if (sWorld->getBoolConfig(CONFIG_SET_SHAPASSHASH)) - { - LoginDatabasePreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_LOGON_LEGACY); - stmt->setString(0, CalculateShaPassHash_DEPRECATED_DONOTUSE(newUsername, newPassword)); - stmt->setUInt32(1, accountId); - LoginDatabase.Execute(stmt); - } - return AccountOpResult::AOR_OK; } @@ -235,14 +220,6 @@ AccountOpResult AccountMgr::ChangePassword(uint32 accountId, std::string newPass stmt->setUInt32(2, accountId); LoginDatabase.Execute(stmt); - if (sWorld->getBoolConfig(CONFIG_SET_SHAPASSHASH)) - { - LoginDatabasePreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_LOGON_LEGACY); - stmt->setString(0, CalculateShaPassHash_DEPRECATED_DONOTUSE(username, newPassword)); - stmt->setUInt32(1, accountId); - LoginDatabase.Execute(stmt); - } - sScriptMgr->OnPasswordChange(accountId); return AccountOpResult::AOR_OK; } |