File

core/usermanager.lua @ 16:ba8e796f9f94

* missing base64 decode of SASL response
author Tobias Markmann <tm@ayena.de>
date Tue, 26 Aug 2008 01:01:13 +0200
parent 0:3e3171b59028
child 38: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