diff options
Diffstat (limited to 'core/configmanager.lua')
-rw-r--r-- | core/configmanager.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua index 1da50ae5..36df0171 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -198,7 +198,6 @@ do FileContents = true, FileLine = true, FileLines = true, - Secret = true, Credential = true, Include = true, include = true, RunScript = true }, { __index = function (_, k) @@ -361,8 +360,8 @@ do env.FileLine = filereader(config_path, "*l"); env.FileLines = linereader(config_path); - if _G.prosody.paths.secrets then - env.Credential = filereader(_G.prosody.paths.secrets, "*a"); + if _G.prosody.paths.credentials then + env.Credential = filereader(_G.prosody.paths.credentials, "*a"); elseif _G.prosody.process_type == "prosody" then env.Credential = function() error("Credential() requires the $CREDENTIALS_DIRECTORY environment variable to be set", 2) end else @@ -373,7 +372,6 @@ do end end - env.Secret = env.Credential; -- COMPAT remove after all the early adopters s/Secret/Credential/ local chunk, err = envload(data, "@"..config_file, env); |