diff options
author | matthew <devnull@localhost> | 2008-08-22 21:09:04 +0000 |
---|---|---|
committer | matthew <devnull@localhost> | 2008-08-22 21:09:04 +0000 |
commit | d0a4f8f2fb4b0927a67ebc7428d6c5cb66d2fbd4 (patch) | |
tree | 7582e73a42b4becdfb964269bfaee8ab3a16317c /core/usermanager.lua | |
download | prosody-d0a4f8f2fb4b0927a67ebc7428d6c5cb66d2fbd4.tar.gz prosody-d0a4f8f2fb4b0927a67ebc7428d6c5cb66d2fbd4.zip |
First commit, where do you want to go tomorrow?
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r-- | core/usermanager.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua new file mode 100644 index 00000000..c98a1918 --- /dev/null +++ b/core/usermanager.lua @@ -0,0 +1,11 @@ + +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 |