core/usermanager.lua

Tue, 30 Sep 2008 19:49:36 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 30 Sep 2008 19:49:36 +0100
changeset 29
b847875801e5
parent 0
3e3171b59028
child 38
3fdfd6e0cb4e
permissions
-rw-r--r--

jid.split(): Return nil when passed nil


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

mercurial