diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-27 15:30:01 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-27 15:30:01 +0500 |
commit | aa65ea57bd188ba7360e62a3b77298b136ffd0d7 (patch) | |
tree | 48847de4fc4171b6b02ec701105a58720f208a47 | |
parent | fba5b67403ef2ff8290d8b3068aa3740e6259209 (diff) | |
download | prosody-aa65ea57bd188ba7360e62a3b77298b136ffd0d7.tar.gz prosody-aa65ea57bd188ba7360e62a3b77298b136ffd0d7.zip |
mod_legacyauth: Undo auth on bind fail. Legacy auth is atomic.
-rw-r--r-- | plugins/mod_legacyauth.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua index 23f1043c..0e0170df 100644 --- a/plugins/mod_legacyauth.lua +++ b/plugins/mod_legacyauth.lua @@ -60,6 +60,7 @@ module:add_iq_handler("c2s_unauthed", "jabber:iq:auth", success, err_type, err, err_msg = sessionmanager.bind_resource(session, resource); if not success then session.send(st.error_reply(stanza, err_type, err, err_msg)); + session.username, session.type = nil, "c2s_unauthed"; -- FIXME should this be placed in sessionmanager? return true; end end |