MCPcopy Create free account
hub / github.com/cuberite/cuberite / HandleLogin

Method HandleLogin

src/ClientHandle.cpp:429–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427
428
429bool cClientHandle::HandleLogin(int a_ProtocolVersion, const AString & a_Username)
430{
431 LOGD("LOGIN %s", a_Username.c_str());
432 m_Username = a_Username;
433
434 if (cRoot::Get()->GetPluginManager()->CallHookLogin(this, a_ProtocolVersion, a_Username))
435 {
436 Destroy();
437 return false;
438 }
439
440 // Schedule for authentication; until then, let them wait (but do not block)
441 m_State = csAuthenticating;
442 cRoot::Get()->GetAuthenticator().Authenticate(GetUniqueID(), GetUsername(), m_Protocol->GetAuthServerID());
443 return true;
444}
445
446
447

Callers 4

ParseLoginMethod · 0.80
ParseClientStatusesMethod · 0.80

Calls 5

c_strMethod · 0.80
CallHookLoginMethod · 0.80
GetPluginManagerMethod · 0.80
AuthenticateMethod · 0.45
GetAuthServerIDMethod · 0.45

Tested by

no test coverage detected