mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix multiple password changes in one session
This commit is contained in:
parent
a8cf10b0b5
commit
432988a4ad
4 changed files with 23 additions and 15 deletions
|
@ -2902,13 +2902,9 @@ void Server::acceptAuth(session_t peer_id, bool forSudoMode)
|
|||
|
||||
NetworkPacket resp_pkt(TOCLIENT_AUTH_ACCEPT, 1 + 6 + 8 + 4, peer_id);
|
||||
|
||||
// Right now, the auth mechs don't change between login and sudo mode.
|
||||
u32 sudo_auth_mechs = client->allowed_auth_mechs;
|
||||
client->allowed_sudo_mechs = sudo_auth_mechs;
|
||||
|
||||
resp_pkt << v3f(0,0,0) << (u64) m_env->getServerMap().getSeed()
|
||||
<< g_settings->getFloat("dedicated_server_step")
|
||||
<< sudo_auth_mechs;
|
||||
<< client->allowed_auth_mechs;
|
||||
|
||||
Send(&resp_pkt);
|
||||
m_clients.event(peer_id, CSE_AuthAccept);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue