Do not check server password on official server (to prevent misconfiguration on client side). Only user auth is performed.

This commit is contained in:
lotodore
2011-10-20 21:41:37 +00:00
parent ddf2ca784b
commit d14d1b4787
+3 -1
View File
@@ -959,7 +959,8 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr<SessionData> session, c
SessionError(session, ERR_NET_VERSION_NOT_SUPPORTED); SessionError(session, ERR_NET_VERSION_NOT_SUPPORTED);
return; return;
} }
// Check (clear text) server password. #ifndef POKERTH_OFFICIAL_SERVER
// Check (clear text) server password (skip for official server, they are open to everyone).
string serverPassword; string serverPassword;
if (initMessage.authServerPassword) { if (initMessage.authServerPassword) {
serverPassword = STL_STRING_FROM_OCTET_STRING(*initMessage.authServerPassword); serverPassword = STL_STRING_FROM_OCTET_STRING(*initMessage.authServerPassword);
@@ -968,6 +969,7 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr<SessionData> session, c
SessionError(session, ERR_NET_INVALID_PASSWORD); SessionError(session, ERR_NET_INVALID_PASSWORD);
return; return;
} }
#endif
string playerName; string playerName;
MD5Buf avatarMD5; MD5Buf avatarMD5;