diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-07-25 19:18:37 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-07-25 19:18:37 +0500 |
commit | 0a342e895babbbbb2db49eaf4db4982f3bbe3385 (patch) | |
tree | 44d37849662bfee2b8142822b84620d72b22674a | |
parent | c3c6460c1dd7fbb42990f5c67f2c7eac6d15433a (diff) | |
download | prosody-0a342e895babbbbb2db49eaf4db4982f3bbe3385.tar.gz prosody-0a342e895babbbbb2db49eaf4db4982f3bbe3385.zip |
usermanager: Reduced some code
-rw-r--r-- | core/usermanager.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua index 955218cc..6c36fa29 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -63,9 +63,7 @@ function create_user(username, password, host) end function get_supported_methods(host) - local methods = {["PLAIN"] = true}; -- TODO this should be taken from the config - methods["DIGEST-MD5"] = true; - return methods; + return {["PLAIN"] = true, ["DIGEST-MD5"] = true}; -- TODO this should be taken from the config end function is_admin(jid) |