Software /
code /
prosody-modules
Diff
mod_auth_http_async/mod_auth_http_async.lua @ 1749:39a0a35f02bc
mod_auth_http_async: Don't go throug usermanager to call a function from the same module
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 18 May 2015 22:41:19 +0200 |
parent | 1421:295c30e44ba8 |
child | 1927:439711709d29 |
line wrap: on
line diff
--- a/mod_auth_http_async/mod_auth_http_async.lua Mon May 18 03:31:53 2015 +0200 +++ b/mod_auth_http_async/mod_auth_http_async.lua Mon May 18 22:41:19 2015 +0200 @@ -7,7 +7,6 @@ -- COPYING file in the source package for more information. -- -local usermanager = require "core.usermanager"; local new_sasl = require "util.sasl".new; local base64 = require "util.encodings".base64.encode; local waiter =require "util.async".waiter; @@ -66,7 +65,7 @@ function provider.get_sasl_handler() return new_sasl(host, { plain_test = function(sasl, username, password, realm) - return usermanager.test_password(username, realm, password), true; + return provider.test_password(username, realm, password), true; end }); end