mod_admin_adhoc: Mark 'accountjids' field as required in 'end user sessions' command (thanks Lloyd)
--- a/plugins/mod_admin_adhoc.lua Tue Sep 09 14:42:10 2014 +0200
+++ b/plugins/mod_admin_adhoc.lua Mon Sep 29 11:02:06 2014 +0200
@@ -162,7 +162,7 @@
instructions = "Fill out this form to end a user's session.";
{ name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" };
- { name = "accountjids", type = "jid-multi", label = "The Jabber ID(s) for which to end sessions" };
+ { name = "accountjids", type = "jid-multi", label = "The Jabber ID(s) for which to end sessions", required = true };
};
local end_user_session_handler = adhoc_simple(end_user_session_layout, function(fields, err)