fix potential security issue, player can't re-enable fediauth without interact privilege

This commit is contained in:
localhost_frssoft 2023-10-03 14:55:21 +03:00
parent fda5d950f0
commit 2f803a8105
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ minetest.register_chatcommand("fediauth_off", {
minetest.register_chatcommand("fediauth_on", {
description = "Enable the fediauth verification",
privs = { interact = true },
func = function(name)
local secret_b32 = fediauth.get_player_secret_b32(name)