core/usermanager.lua@dcc5ac721c20
core/usermanager.lua
Sun, 24 Aug 2008 22:48:27 +0100
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Sun, 24 Aug 2008 22:48:27 +0100
- changeset 7
- dcc5ac721c20
- parent 0
-
3e3171b59028
- child 38
-
3fdfd6e0cb4e
- permissions
- -rw-r--r--
- Remove some debugging code
- Don't allow stanzas to be sent before successful auth (needs further review)
- Make init_xmlhandlers local
- Fix indentation in main.lua
- Fix disconnect logic (it broke if client disconnected before auth, etc.)
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