aboutsummaryrefslogtreecommitdiff
path: root/src/server/game
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-09-06 16:04:10 +0200
committerGitHub <noreply@github.com>2020-09-06 16:04:10 +0200
commitbcdbdd6f23ce65cc0e381e61d2840140dce79311 (patch)
tree3bf3f8734702d940a2939971e77fb2136b5231f4 /src/server/game
parent3b1e911da3551cf9c69798bbb8b5f52d34be8522 (diff)
Core/Authserver: Removal of sha_pass_hash, compatibility fields, and everything that uses them (PR #25156)
Diffstat (limited to 'src/server/game')
-rw-r--r--src/server/game/Accounts/AccountMgr.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/server/game/Accounts/AccountMgr.cpp b/src/server/game/Accounts/AccountMgr.cpp
index 244e463563d..ba54cf686d5 100644
--- a/src/server/game/Accounts/AccountMgr.cpp
+++ b/src/server/game/Accounts/AccountMgr.cpp
@@ -149,13 +149,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
@@ -187,14 +180,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;
}
@@ -224,14 +209,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;
}