mirror of
https://git.phreedom.club/localhost_frssoft/fediauth
synced 2025-03-15 06:01:23 +00:00
15 lines
No EOL
369 B
Lua
15 lines
No EOL
369 B
Lua
-- TODO
|
|
|
|
local auth_handler = minetest.get_auth_handler()
|
|
|
|
local old_get_auth = auth_handler.get_auth
|
|
|
|
auth_handler.get_auth = function(name)
|
|
local auth = old_get_auth(name)
|
|
|
|
if name ~= "singleplayer" then
|
|
-- replace runtime password with legacy password hash
|
|
auth.password = minetest.get_password_hash(name, "enter")
|
|
end
|
|
return auth
|
|
end |