1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fixes a bug that made the server to deny non-empty passwords from players connecting the first time.

This commit is contained in:
Perttu Ahola 2011-07-31 15:51:24 +03:00
parent a27200a7a1
commit 19ea901cf2
2 changed files with 4 additions and 1 deletions

View file

@ -2047,7 +2047,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
/*dstream<<"Server: Client gave password '"<<password
<<"', the correct one is '"<<checkpwd<<"'"<<std::endl;*/
if(password != checkpwd)
if(password != checkpwd && m_authmanager.exists(playername))
{
derr_server<<DTIME<<"Server: peer_id="<<peer_id
<<": supplied invalid password for "