| 427 | |
| 428 | |
| 429 | bool 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 |
no test coverage detected