view core/usermanager.lua @ 13:716632cca05d

Coding style doc, HACKERS file
author Matthew Wild <mwild1@gmail.com>
date Mon, 25 Aug 2008 22:06:47 +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