mod_admin_adhoc: Mark 'accountjids' field as required in 'end user sessions' command (thanks Lloyd)
authorKim Alvefur <zash@zash.se>
Mon, 29 Sep 2014 11:02:06 +0200
changeset 6464 6b38bfaafe0c
parent 6402 e3de64f7c44d
child 6465 fcff8fa495d4
mod_admin_adhoc: Mark 'accountjids' field as required in 'end user sessions' command (thanks Lloyd)
plugins/mod_admin_adhoc.lua
--- 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)