Diff

plugins/mod_admin_adhoc.lua @ 6461:6b38bfaafe0c

mod_admin_adhoc: Mark 'accountjids' field as required in 'end user sessions' command (thanks Lloyd)
author Kim Alvefur <zash@zash.se>
date Mon, 29 Sep 2014 11:02:06 +0200
parent 5721:579c51cbc12c
child 6462:fcff8fa495d4
line wrap: on
line diff
--- 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)