view core/usermanager.lua @ 22:2856dfc1f5cc

Various documentation updates, and added names.txt :)
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Sep 2008 02:24:28 +0100
parents 3e3171b59028
children 3fdfd6e0cb4e
line wrap: on
line source


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