Forgot one block

This commit is contained in:
Learath2 2017-03-04 10:58:02 +03:00
parent d475eddb88
commit cf9f3e3d38

View file

@ -2422,10 +2422,14 @@ void CServer::ConchainRconPasswordChange(IConsole::IResult *pResult, void *pUser
int KeySlot = pManager->DefaultKey(AUTHED_ADMIN); int KeySlot = pManager->DefaultKey(AUTHED_ADMIN);
if(KeySlot == -1) if(KeySlot == -1)
{
pManager->AddAdminKey(pResult->GetString(0));//Shouldn't happen pManager->AddAdminKey(pResult->GetString(0));//Shouldn't happen
}
pManager->UpdateKey(KeySlot, pResult->GetString(0), AUTHED_ADMIN); else
pServer->LogoutKey(KeySlot, "key update"); {
pManager->UpdateKey(KeySlot, pResult->GetString(0), AUTHED_ADMIN);
pServer->LogoutKey(KeySlot, "key update");
}
} }
} }