diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-24 03:46:52 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-24 03:46:52 +0500 |
commit | ee9318ebfb3a999870d7d0239a0f9d824c9bd656 (patch) | |
tree | 29652e102bce080456a3bbd0e5c26d0f5ec22f4c /plugins | |
parent | 3b36940c3b484791ad392fa696927d6b5af4346b (diff) | |
download | prosody-ee9318ebfb3a999870d7d0239a0f9d824c9bd656.tar.gz prosody-ee9318ebfb3a999870d7d0239a0f9d824c9bd656.zip |
mod_register: Don't disable account before deleting it (unnecessary, and can cause problems).
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index b8d142f7..40303b57 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -35,7 +35,7 @@ module:add_iq_handler("c2s", "jabber:iq:register", function (session, stanza) local username, host = session.username, session.host; --session.send(st.error_reply(stanza, "cancel", "not-allowed")); --return; - usermanager_set_password(username, host, nil); -- Disable account + --usermanager_set_password(username, host, nil); -- Disable account -- FIXME the disabling currently allows a different user to recreate the account -- we should add an in-memory account block mode when we have threading session.send(st.reply(stanza)); |