mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 00:00:13 +00:00
Improve auth error feedback with specific failure reasons, version mismatch details, and connection timeout
This commit is contained in:
parent
78442f8aea
commit
a52e28191e
4 changed files with 56 additions and 26 deletions
|
|
@ -105,7 +105,7 @@ void AuthHandler::handleLogonChallengeResponse(network::Packet& packet) {
|
|||
|
||||
LogonChallengeResponse response;
|
||||
if (!LogonChallengeResponseParser::parse(packet, response)) {
|
||||
fail("Failed to parse LOGON_CHALLENGE response");
|
||||
fail("Server sent an invalid response - it may use an incompatible protocol version");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -140,18 +140,18 @@ void AuthHandler::handleLogonProofResponse(network::Packet& packet) {
|
|||
|
||||
LogonProofResponse response;
|
||||
if (!LogonProofResponseParser::parse(packet, response)) {
|
||||
fail("Failed to parse LOGON_PROOF response");
|
||||
fail("Server sent an invalid login response - it may use an incompatible protocol");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!response.isSuccess()) {
|
||||
fail("LOGON_PROOF failed: invalid proof");
|
||||
fail("Login failed - incorrect username or password");
|
||||
return;
|
||||
}
|
||||
|
||||
// Verify server proof
|
||||
if (!srp->verifyServerProof(response.M2)) {
|
||||
fail("Server proof verification failed");
|
||||
fail("Server identity verification failed - the server may be running an incompatible version");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue