Software / code / prosody
File
core/usermanager.lua @ 49:1cd2a8db392d
New "import" module to help tidy up all the local declarations at the top of modules
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 04 Oct 2008 02:43:23 +0100 |
| parent | 38:3fdfd6e0cb4e |
| child | 53: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;