fix potential security issue, player can't re-enable fediauth without interact privilege
This commit is contained in:
parent
fda5d950f0
commit
2f803a8105
|
@ -21,6 +21,7 @@ minetest.register_chatcommand("fediauth_off", {
|
||||||
|
|
||||||
minetest.register_chatcommand("fediauth_on", {
|
minetest.register_chatcommand("fediauth_on", {
|
||||||
description = "Enable the fediauth verification",
|
description = "Enable the fediauth verification",
|
||||||
|
privs = { interact = true },
|
||||||
func = function(name)
|
func = function(name)
|
||||||
local secret_b32 = fediauth.get_player_secret_b32(name)
|
local secret_b32 = fediauth.get_player_secret_b32(name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue