mod_admin_adhoc: Add required to field in user deletion form too
[prosody.git] / plugins / mod_admin_adhoc.lua
index 704b26856064b5c9d4feb69422bcbaa88cc7cdbb..232fa5f777525980fe20f5b29a9f692e92e30162 100644 (file)
@@ -118,7 +118,7 @@ local delete_user_layout = dataforms_new{
        instructions = "Fill out this form to delete a user.";
 
        { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" };
-       { name = "accountjids", type = "jid-multi", label = "The Jabber ID(s) to delete" };
+       { name = "accountjids", type = "jid-multi", required = true, label = "The Jabber ID(s) to delete" };
 };
 
 local delete_user_command_handler = adhoc_simple(delete_user_layout, function(fields, err)