aboutsummaryrefslogtreecommitdiffstats
path: root/util/dataforms.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-04 16:23:32 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-04 16:23:32 +0100
commit425c141369ef27ae7a9b4afd657da0b7f563f163 (patch)
treeac6fe3a24b0989c20e88ef127b05cffa4fc93966 /util/dataforms.lua
parent938c08a108e7b26ede1494a8d27cc37af9d0be48 (diff)
downloadprosody-425c141369ef27ae7a9b4afd657da0b7f563f163.tar.gz
prosody-425c141369ef27ae7a9b4afd657da0b7f563f163.zip
util.dataforms: Add support for <required/> fields
Diffstat (limited to 'util/dataforms.lua')
-rw-r--r--util/dataforms.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 73a78f08..92d4f619 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -57,6 +57,10 @@ function form_t.form(layout, data)
end
end
+ if field.required then
+ form:tag("required"):up();
+ end
+
-- Jump back up to list of fields
form:up();
end