mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(net): stub implementation of Grunt::ClientLink::CmdAuthLogonProof
This commit is contained in:
parent
25bd29c45f
commit
097b6e6017
1 changed files with 31 additions and 0 deletions
|
|
@ -204,7 +204,38 @@ int32_t Grunt::ClientLink::CmdAuthLogonChallenge(CDataStore& msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Grunt::ClientLink::CmdAuthLogonProof(CDataStore& msg) {
|
int32_t Grunt::ClientLink::CmdAuthLogonProof(CDataStore& msg) {
|
||||||
|
if (msg.m_read >= msg.m_size) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t result;
|
||||||
|
msg.Get(result);
|
||||||
|
|
||||||
|
// Auth failure (success == 0)
|
||||||
|
if (result != 0) {
|
||||||
|
if (result == 4) {
|
||||||
// TODO
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
if (msg.m_read > msg.m_size) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result != 10) {
|
||||||
|
this->SetState(2);
|
||||||
|
|
||||||
|
// TODO range check on result
|
||||||
|
|
||||||
|
this->m_clientResponse->LogonResult(static_cast<Grunt::Result>(result), nullptr, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Auth success
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue