Fix authentication handler reporting failed password change while it isn't
authorPerttu Ahola <celeron55@gmail.com>
Sat, 31 Mar 2012 14:41:04 +0000 (17:41 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 31 Mar 2012 14:41:04 +0000 (17:41 +0300)
builtin/builtin.lua

index 2ca5f15a205f77b4a5342c81cdb88c601732ddac..d681faa738cf932c7070eb4dff149aa7021ab355 100644 (file)
@@ -1329,6 +1329,7 @@ minetest.builtin_auth_handler = {
                        minetest.auth_table[name].password = password
                        save_auth_file()
                end
+               return true
        end,
        set_privileges = function(name, privileges)
                assert(type(name) == "string")