aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Accounts/BattlenetAccountMgr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-01-03 13:04:19 +0100
committerShauren <shauren.trinity@gmail.com>2025-01-03 13:04:19 +0100
commit27860c3316b7354c6bf17cac82992085d2905934 (patch)
treea0c87fdb392b2d3ce2af9e8788e1081421740975 /src/server/game/Accounts/BattlenetAccountMgr.cpp
parent000e4e99702d703ada9b2798f579534b547e35a6 (diff)
Core/Database: Added std::span based functions to Field and PreparedStatement
Diffstat (limited to 'src/server/game/Accounts/BattlenetAccountMgr.cpp')
-rw-r--r--src/server/game/Accounts/BattlenetAccountMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Accounts/BattlenetAccountMgr.cpp b/src/server/game/Accounts/BattlenetAccountMgr.cpp
index 8b57ac71093..0ec58b95344 100644
--- a/src/server/game/Accounts/BattlenetAccountMgr.cpp
+++ b/src/server/game/Accounts/BattlenetAccountMgr.cpp
@@ -51,7 +51,7 @@ AccountOpResult Battlenet::AccountMgr::CreateBattlenetAccount(std::string email,
stmt->setString(0, email);
stmt->setInt8(1, AsUnderlyingType(SrpVersion::v2));
stmt->setBinary(2, salt);
- stmt->setBinary(3, verifier);
+ stmt->setBinary(3, std::move(verifier));
LoginDatabase.DirectExecute(stmt);
uint32 newAccountId = GetId(email);
@@ -83,7 +83,7 @@ AccountOpResult Battlenet::AccountMgr::ChangePassword(uint32 accountId, std::str
LoginDatabasePreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_BNET_LOGON);
stmt->setInt8(0, AsUnderlyingType(SrpVersion::v2));
stmt->setBinary(1, salt);
- stmt->setBinary(2, verifier);
+ stmt->setBinary(2, std::move(verifier));
stmt->setUInt32(3, accountId);
LoginDatabase.Execute(stmt);
@@ -160,7 +160,7 @@ AccountOpResult Battlenet::AccountMgr::UnlinkGameAccount(std::string_view gameAc
uint32 Battlenet::AccountMgr::GetId(std::string_view username)
{
LoginDatabasePreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_BNET_ACCOUNT_ID_BY_EMAIL);
- stmt->setStringView(0, username);
+ stmt->setString(0, username);
if (PreparedQueryResult result = LoginDatabase.Query(stmt))
return (*result)[0].GetUInt32();