diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-28 01:16:26 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-28 01:16:26 +0500 |
commit | 631e249397fd7cd2a2c5a7cb4c1feba664a41b2e (patch) | |
tree | 97381a92a65cde13d065e519bdd7d66fe68ba0ba /plugins/mod_saslauth.lua | |
parent | 85a3bc344309ecd4c1db4dfa5a86c115f7d28cbd (diff) | |
download | prosody-631e249397fd7cd2a2c5a7cb4c1feba664a41b2e.tar.gz prosody-631e249397fd7cd2a2c5a7cb4c1feba664a41b2e.zip |
Completely switched to new hashes library from the old md5 library
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r-- | plugins/mod_saslauth.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index c8912eae..616c5118 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -8,6 +8,7 @@ local usermanager_validate_credentials = require "core.usermanager".validate_cre local t_concat, t_insert = table.concat, table.insert; local tostring = tostring; local jid_split = require "util.jid".split +local md5 = require "util.hashes".md5; local log = require "util.logger".init("mod_saslauth"); @@ -50,7 +51,7 @@ local function password_callback(node, host, mechanism) if mechanism == "PLAIN" then return func, password; elseif mechanism == "DIGEST-MD5" then - return func, require "md5".sum(node..":"..host..":"..password); + return func, md5(node..":"..host..":"..password); end end return func, nil; |