aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-03-18 16:13:32 +0100
committerKim Alvefur <zash@zash.se>2023-03-18 16:13:32 +0100
commit9dd7ce434d2297ab807639722b3416600e1180cf (patch)
treec3fb5931f5da4a716d56921ae2dbe5e45167f02f /plugins
parentc11d121c0635f44404e9f3e784190e898609b876 (diff)
downloadprosody-9dd7ce434d2297ab807639722b3416600e1180cf.tar.gz
prosody-9dd7ce434d2297ab807639722b3416600e1180cf.zip
mod_auth_internal_hashed: Shorten call path
Why did it call a function defined in the same module through usermanager?
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_auth_internal_hashed.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index cd5e9364..bc64e4f0 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -10,7 +10,6 @@
local max = math.max;
local scram_hashers = require "util.sasl.scram".hashers;
-local usermanager = require "core.usermanager";
local generate_uuid = require "util.uuid".generate;
local new_sasl = require "util.sasl".new;
local hex = require"util.hex";
@@ -163,8 +162,8 @@ end
function provider.get_sasl_handler()
local testpass_authentication_profile = {
- plain_test = function(_, username, password, realm)
- return usermanager.test_password(username, realm, password), provider.is_enabled(username);
+ plain_test = function(_, username, password)
+ return provider.test_password(username, password), provider.is_enabled(username);
end,
[scram_name] = function(_, username)
local credentials = accounts:get(username);