Software /
code /
prosody
Comparison
core/usermanager.lua @ 10635:675d9fbcbaed
mod_authz_internal, usermanager: Rename to mod_authz_config
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 27 Jan 2020 22:28:52 +0000 |
parent | 10634:c9e1cb7a38b8 |
child | 10640:5622eda7c5c5 |
comparison
equal
deleted
inserted
replaced
10634:c9e1cb7a38b8 | 10635:675d9fbcbaed |
---|---|
54 local provider_mt = { __index = new_null_provider() }; | 54 local provider_mt = { __index = new_null_provider() }; |
55 | 55 |
56 local function initialize_host(host) | 56 local function initialize_host(host) |
57 local host_session = hosts[host]; | 57 local host_session = hosts[host]; |
58 | 58 |
59 local authz_provider_name = config.get(host, "authorization") or "internal"; | 59 local authz_provider_name = config.get(host, "authorization") or "config"; |
60 | 60 |
61 local authz_mod = modulemanager.load(host, "authz_"..authz_provider_name); | 61 local authz_mod = modulemanager.load(host, "authz_"..authz_provider_name); |
62 host_session.authz = authz_mod or global_authz_provider; | 62 host_session.authz = authz_mod or global_authz_provider; |
63 | 63 |
64 if host_session.type ~= "local" then return; end | 64 if host_session.type ~= "local" then return; end |