Mercurial > prosody-hg
comparison core/usermanager.lua @ 10659:8f95308c3c45
usermanager, mod_authz_*: Merge mod_authz_config and mod_authz_internal into the latter
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 23 Feb 2020 12:38:43 +0000 |
| parents | 5622eda7c5c5 |
| children | 52886aad9ee1 |
comparison
equal
deleted
inserted
replaced
| 10658:52c6dfa04dba | 10659:8f95308c3c45 |
|---|---|
| 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 "config"; | 59 local authz_provider_name = config.get(host, "authorization") or "internal"; |
| 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 |
