openid removed
This commit is contained in:
@@ -57,7 +57,6 @@ extern int auction_server;
|
||||
extern void gm_insert(const char * name, BYTE level);
|
||||
extern BYTE gm_get_level(const char * name, const char * host, const char* account );
|
||||
extern void gm_host_insert(const char * host);
|
||||
extern int openid_server;
|
||||
|
||||
#define MAPNAME_DEFAULT "none"
|
||||
|
||||
@@ -1768,42 +1767,6 @@ void CInputDB::AuthLogin(LPDESC d, const char * c_pData)
|
||||
d->Packet(&ptoc, sizeof(TPacketGCAuthSuccess));
|
||||
sys_log(0, "AuthLogin result %u key %u", bResult, d->GetLoginKey());
|
||||
}
|
||||
void CInputDB::AuthLoginOpenID(LPDESC d, const char * c_pData)
|
||||
{
|
||||
if (!d)
|
||||
return;
|
||||
|
||||
BYTE bResult = *(BYTE *) c_pData;
|
||||
|
||||
TPacketGCAuthSuccessOpenID ptoc;
|
||||
|
||||
ptoc.bHeader = HEADER_GC_AUTH_SUCCESS_OPENID;
|
||||
|
||||
if (bResult)
|
||||
{
|
||||
// Panama 암호화 팩에 필요한 키 보내기
|
||||
SendPanamaList(d);
|
||||
ptoc.dwLoginKey = d->GetLoginKey();
|
||||
|
||||
//NOTE: AuthSucess보다 먼저 보내야지 안그러면 PHASE Close가 되서 보내지지 않는다.-_-
|
||||
//Send Client Package CryptKey
|
||||
{
|
||||
DESC_MANAGER::instance().SendClientPackageCryptKey(d);
|
||||
DESC_MANAGER::instance().SendClientPackageSDBToLoadMap(d, MAPNAME_DEFAULT);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ptoc.dwLoginKey = 0;
|
||||
}
|
||||
|
||||
strcpy(ptoc.login, d->GetLogin().c_str());
|
||||
|
||||
ptoc.bResult = bResult;
|
||||
|
||||
d->Packet(&ptoc, sizeof(TPacketGCAuthSuccessOpenID));
|
||||
sys_log(0, "AuthLogin result %u key %u", bResult, d->GetLoginKey());
|
||||
}
|
||||
|
||||
void CInputDB::ChangeEmpirePriv(const char* c_pData)
|
||||
{
|
||||
@@ -2342,10 +2305,7 @@ int CInputDB::Analyze(LPDESC d, BYTE bHeader, const char * c_pData)
|
||||
break;
|
||||
|
||||
case HEADER_DG_AUTH_LOGIN:
|
||||
if (openid_server)
|
||||
AuthLoginOpenID(DESC_MANAGER::instance().FindByHandle(m_dwHandle), c_pData);
|
||||
else
|
||||
AuthLogin(DESC_MANAGER::instance().FindByHandle(m_dwHandle), c_pData);
|
||||
AuthLogin(DESC_MANAGER::instance().FindByHandle(m_dwHandle), c_pData);
|
||||
break;
|
||||
|
||||
case HEADER_DG_CHANGE_EMPIRE_PRIV:
|
||||
|
||||
Reference in New Issue
Block a user