Mercurial > prosody-hg
view core/usermanager.lua @ 52:93e468eb2ffb
Fix for destruction of unauthed SASL sessions
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 04 Oct 2008 15:24:52 +0100 |
| parents | 3fdfd6e0cb4e |
| children | 14ea0fe6ca86 |
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 return _M;
