aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-07-31 15:51:24 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-07-31 15:51:24 +0300
commit19ea901cf21685a53c279f24e04eaa37a3193aa6 (patch)
treed429fc9e17a1e17751cc903b5ab076b81d16199f /src
parenta27200a7a10ef9129f8aabe88383f238dac6cca6 (diff)
downloadminetest-19ea901cf21685a53c279f24e04eaa37a3193aa6.tar.gz
minetest-19ea901cf21685a53c279f24e04eaa37a3193aa6.tar.bz2
minetest-19ea901cf21685a53c279f24e04eaa37a3193aa6.zip
Fixes a bug that made the server to deny non-empty passwords from players connecting the first time.
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 35c186b5d..8a19306a9 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -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 "