diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-04-09 11:24:35 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-04-09 11:24:35 +0300 |
commit | 3214daca4cad736f3d8d89d4b4a6d144d8e1562d (patch) | |
tree | 43e7efbf92564b3d5d1ceea9d35c067b1f4a9db2 /builtin | |
parent | e4485f5412230e4c8fa21f402ee655a19e1e26c6 (diff) | |
download | minetest-3214daca4cad736f3d8d89d4b4a6d144d8e1562d.tar.gz minetest-3214daca4cad736f3d8d89d4b4a6d144d8e1562d.tar.bz2 minetest-3214daca4cad736f3d8d89d4b4a6d144d8e1562d.zip |
Fix unable to join server first time with a password
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/auth.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/builtin/auth.lua b/builtin/auth.lua index 0d4503925..b6cca609c 100644 --- a/builtin/auth.lua +++ b/builtin/auth.lua @@ -84,12 +84,9 @@ minetest.builtin_auth_handler = { -- always has an empty password, otherwise use default, which is -- usually empty too) local new_password_hash = "" - if not minetest.is_singleplayer() then - new_password_hash = minetest.get_password_hash(name, minetest.setting_get("default_password")) - end - -- Add player to authentication table if not there already + -- If not in authentication table, return nil if not minetest.auth_table[name] then - minetest.builtin_auth_handler.create_auth(name, minetest.get_password_hash(name, minetest.setting_get("default_password"))) + return nil end -- Figure out what privileges the player should have. -- Take a copy of the privilege table |