Comparison

plugins/mod_auth_internal_plain.lua @ 4603:6900c9484834

mod_auth_internal_{plain,hashed}: Clarify log messages on initialization
author Matthew Wild <mwild1@gmail.com>
date Sun, 11 Mar 2012 20:56:09 +0000
parent 4160:f08f649b898b
child 4762:943f9f860ab4
comparison
equal deleted inserted replaced
4602:ba898af15de5 4603:6900c9484834
21 21
22 local prosody = _G.prosody; 22 local prosody = _G.prosody;
23 23
24 function new_default_provider(host) 24 function new_default_provider(host)
25 local provider = { name = "internal_plain" }; 25 local provider = { name = "internal_plain" };
26 log("debug", "initializing default authentication provider for host '%s'", host); 26 log("debug", "initializing internal_plain authentication provider for host '%s'", host);
27 27
28 function provider.test_password(username, password) 28 function provider.test_password(username, password)
29 log("debug", "test password '%s' for user %s at host %s", password, username, module.host); 29 log("debug", "test password '%s' for user %s at host %s", password, username, module.host);
30 local credentials = datamanager.load(username, host, "accounts") or {}; 30 local credentials = datamanager.load(username, host, "accounts") or {};
31 31