mod_register: Don't disable account before deleting it (unnecessary, and can cause problems).

Thu, 24 Jun 2010 03:46:52 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 24 Jun 2010 03:46:52 +0500
changeset 3296
5f57f2f81c02
parent 3295
8865d1b3dce2
child 3297
aa3725bbcde5

mod_register: Don't disable account before deleting it (unnecessary, and can cause problems).

plugins/mod_register.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_register.lua	Thu Jun 24 03:46:05 2010 +0500
+++ b/plugins/mod_register.lua	Thu Jun 24 03:46:52 2010 +0500
@@ -35,7 +35,7 @@
 				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));

mercurial