chore(Core/Authserver): Remove redundant conversion during Reconnect Proof cmd (#18957)

https://github.com/TrinityCore/TrinityCore/pull/26765
Author: [walkline](https://github.com/walkline)
This commit is contained in:
天鹿
2024-07-27 18:43:07 +08:00
committed by GitHub
parent 6343ec9c0b
commit c8cb2e55ee

View File

@@ -689,12 +689,9 @@ bool AuthSession::HandleReconnectProof()
if (_accountInfo.Login.empty())
return false;
BigNumber t1;
t1.SetBinary(reconnectProof->R1, 16);
Acore::Crypto::SHA1 sha;
sha.UpdateData(_accountInfo.Login);
sha.UpdateData(t1.ToByteArray<16>());
sha.UpdateData(reconnectProof->R1, 16);
sha.UpdateData(_reconnectProof);
sha.UpdateData(_sessionKey);
sha.Finalize();