diff options
author | Tobias Markmann <tm@ayena.de> | 2008-11-15 20:28:09 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2008-11-15 20:28:09 +0100 |
commit | 0d8a36b732987a9cf82437acd513280c9faa4b08 (patch) | |
tree | 87cbb3360e4fa2ff91cbffded7c518137396f3fd /plugins/mod_saslauth.lua | |
parent | 564d2da8d5616327f54cd4f145098969698ac952 (diff) | |
download | prosody-0d8a36b732987a9cf82437acd513280c9faa4b08.tar.gz prosody-0d8a36b732987a9cf82437acd513280c9faa4b08.zip |
Set username in a SASL object.
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r-- | plugins/mod_saslauth.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index b95d160d..314d2502 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -7,6 +7,7 @@ local jid local usermanager_validate_credentials = require "core.usermanager".validate_credentials; local t_concat, t_insert = table.concat, table.insert; local tostring = tostring; +local jid_split = require "util.jid".split local log = require "util.logger".init("mod_saslauth"); @@ -65,7 +66,9 @@ function do_sasl(session, stanza) end local status, ret = session.sasl_handler:feed(text); handle_status(session, status); - session.send(build_reply(status, ret)); + local s = build_reply(status, ret); + log("debug", "sasl reply: "..tostring(s)); + session.send(s); end add_handler("c2s_unauthed", "auth", xmlns_sasl, |