mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_auth_internal_hashed: Shorten call path
Why did it call a function defined in the same module through usermanager?
This commit is contained in:
parent
c11d121c06
commit
9dd7ce434d
1 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,6 @@
|
||||||
local max = math.max;
|
local max = math.max;
|
||||||
|
|
||||||
local scram_hashers = require "util.sasl.scram".hashers;
|
local scram_hashers = require "util.sasl.scram".hashers;
|
||||||
local usermanager = require "core.usermanager";
|
|
||||||
local generate_uuid = require "util.uuid".generate;
|
local generate_uuid = require "util.uuid".generate;
|
||||||
local new_sasl = require "util.sasl".new;
|
local new_sasl = require "util.sasl".new;
|
||||||
local hex = require"util.hex";
|
local hex = require"util.hex";
|
||||||
|
@ -163,8 +162,8 @@ end
|
||||||
|
|
||||||
function provider.get_sasl_handler()
|
function provider.get_sasl_handler()
|
||||||
local testpass_authentication_profile = {
|
local testpass_authentication_profile = {
|
||||||
plain_test = function(_, username, password, realm)
|
plain_test = function(_, username, password)
|
||||||
return usermanager.test_password(username, realm, password), provider.is_enabled(username);
|
return provider.test_password(username, password), provider.is_enabled(username);
|
||||||
end,
|
end,
|
||||||
[scram_name] = function(_, username)
|
[scram_name] = function(_, username)
|
||||||
local credentials = accounts:get(username);
|
local credentials = accounts:get(username);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue