aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Secrets/SecretMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/shared/Secrets/SecretMgr.cpp')
-rw-r--r--src/server/shared/Secrets/SecretMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/shared/Secrets/SecretMgr.cpp b/src/server/shared/Secrets/SecretMgr.cpp
index a4d487b3401..f084bd10bfb 100644
--- a/src/server/shared/Secrets/SecretMgr.cpp
+++ b/src/server/shared/Secrets/SecretMgr.cpp
@@ -200,7 +200,7 @@ Optional<std::string> SecretMgr::AttemptTransition(Secrets i, Optional<BigNumber
Trinity::Crypto::AEEncryptWithRandomIV<Trinity::Crypto::AES>(totpSecret, newSecret->ToByteArray<Trinity::Crypto::AES::KEY_SIZE_BYTES>());
LoginDatabasePreparedStatement* updateStmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_ACCOUNT_TOTP_SECRET);
- updateStmt->setBinary(0, totpSecret);
+ updateStmt->setBinary(0, std::move(totpSecret));
updateStmt->setUInt32(1, id);
trans->Append(updateStmt);
} while (result->NextRow());