Skip to content

Commit

Permalink
help turn off password check
Browse files Browse the repository at this point in the history
On singleplayer and test servers it has been hard to turn off password reminder.
Something is setting default_password to '' even if minetest.conf does not contain that setting.
  • Loading branch information
SwissalpS authored and S-S-X committed Feb 16, 2022
1 parent 7e1476e commit 69400d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/password.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

local default_password = minetest.settings:get("default_password")
if not default_password then
if not default_password or '' == default_password then
-- Do not use if default password is not set
return
end
Expand Down

0 comments on commit 69400d6

Please sign in to comment.