mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Forgot one block
This commit is contained in:
parent
d475eddb88
commit
cf9f3e3d38
|
@ -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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue