core/usermanager.lua@d6b3f9dbb624
core/usermanager.lua
Sat, 04 Oct 2008 02:15:13 +0100
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Sat, 04 Oct 2008 02:15:13 +0100
- changeset 46
- d6b3f9dbb624
- parent 38
-
3fdfd6e0cb4e
- child 53
-
14ea0fe6ca86
- permissions
- -rw-r--r--
Resource binding, XMPP sessions (whatever they're for...)
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
return _M;