# HG changeset patch # User Florian Zeitz # Date 1259176436 -3600 # Node ID e172f02726d993f411f1ac8b314327ec16d2181e # Parent c1f4edf3bea76fa2aff029dd6ebc91bc48f78f89 mod_adhoc_cmd_admin: Fix global access diff -r c1f4edf3bea7 -r e172f02726d9 mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua --- 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();