# HG changeset patch # User Kim Alvefur # Date 1431981679 -7200 # Node ID 39a0a35f02bcfdabb665c4b832457025c6c309e8 # Parent 0697fbef9134f60b6d2b86f8d01cea6dec0a9a5a mod_auth_http_async: Don't go throug usermanager to call a function from the same module diff -r 0697fbef9134 -r 39a0a35f02bc mod_auth_http_async/mod_auth_http_async.lua --- 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