Software /
code /
prosody-modules
Changeset
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 |
parents | 1748:0697fbef9134 |
children | 1750:3b839db88412 |
files | mod_auth_http_async/mod_auth_http_async.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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