Software /
code /
prosody
Comparison
plugins/mod_auth_internal_hashed.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 | 4763:322b7335fbf3 |
comparison
equal
deleted
inserted
replaced
4602:ba898af15de5 | 4603:6900c9484834 |
---|---|
52 -- Default; can be set per-user | 52 -- Default; can be set per-user |
53 local iteration_count = 4096; | 53 local iteration_count = 4096; |
54 | 54 |
55 function new_hashpass_provider(host) | 55 function new_hashpass_provider(host) |
56 local provider = { name = "internal_hashed" }; | 56 local provider = { name = "internal_hashed" }; |
57 log("debug", "initializing hashpass authentication provider for host '%s'", host); | 57 log("debug", "initializing internal_hashed authentication provider for host '%s'", host); |
58 | 58 |
59 function provider.test_password(username, password) | 59 function provider.test_password(username, password) |
60 local credentials = datamanager.load(username, host, "accounts") or {}; | 60 local credentials = datamanager.load(username, host, "accounts") or {}; |
61 | 61 |
62 if credentials.password ~= nil and string.len(credentials.password) ~= 0 then | 62 if credentials.password ~= nil and string.len(credentials.password) ~= 0 then |