mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-25 16:53:47 +01:00
no-op depricated and useless get_password
This commit is contained in:
parent
d333c8fa71
commit
b47198299b
7
init.lua
7
init.lua
@ -164,13 +164,10 @@ function factions.valid_password(faction_name, password)
|
|||||||
return factions.hash_password(password) == facts[faction_name].password256
|
return factions.hash_password(password) == facts[faction_name].password256
|
||||||
end
|
end
|
||||||
|
|
||||||
function factions.get_password(fname)
|
function factions.get_password()
|
||||||
minetest.log("warning", "Deprecated use of factions.get_password(). "
|
minetest.log("warning", "Deprecated use of factions.get_password(). "
|
||||||
.. "Please update to using factions.valid_password() instead.")
|
.. "Please update to using factions.valid_password() instead.")
|
||||||
if not facts[fname] then
|
return nil
|
||||||
return false
|
|
||||||
end
|
|
||||||
return facts[fname].password
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if not facts[fname] then
|
if not facts[fname] then
|
||||||
|
Loading…
Reference in New Issue
Block a user