prosody/core/usermanager.lua
2008-08-24 18:01:20 +01:00

11 lines
291 B
Lua

require "util.datamanager"
local datamanager = datamanager;
module "usermanager"
function validate_credentials(host, username, password)
local credentials = datamanager.load(username, host, "accounts") or {};
if password == credentials.password then return true; end
return false;
end