Changeset

97:e172f02726d9

mod_adhoc_cmd_admin: Fix global access
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 25 Nov 2009 20:13:56 +0100
parents 96:c1f4edf3bea7
children 98:a54cc7bca826
files mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua	Mon Nov 23 21:38:43 2009 +0500
+++ b/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua	Wed Nov 25 20:13:56 2009 +0100
@@ -162,7 +162,7 @@
 		local fields = get_user_password_layout:data(form);
 		local accountjid = st.stanza("field", {var="accountjid", label = "JID", type="jid-single"});
 		local password = st.stanza("field", {var="password", label = "Password", type="text-single"});
-		user, host, resource = jid.split(fields.accountjid);
+		local user, host, resource = jid.split(fields.accountjid);
 		if usermanager_user_exists(user, host) then
 			accountjid:tag("value"):text(fields.accountjid):up();
 			password:tag("value"):text(usermanager_get_password(user, host)):up();