comparison plugins/mod_auth_internal_hashed.lua @ 4684:dc70c4ffb66d

Merge timber->trunk - thanks everyone!
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Apr 2012 21:59:20 +0100
parents 6900c9484834
children 322b7335fbf3
comparison
equal deleted inserted replaced
4529:12621337471f 4684:dc70c4ffb66d
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