From 2789aebcb2aae1f3dca8a1cda130de1d4ad53cb3 Mon Sep 17 00:00:00 2001 From: kb-light Date: Mon, 8 Aug 2016 11:38:57 +0200 Subject: [PATCH] gluon-luci-private-wifi: limit ssid to 32 characters (#848) Fixes #845 --- .../luasrc/usr/lib/lua/luci/model/cbi/admin/privatewifi.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/package/gluon-luci-private-wifi/luasrc/usr/lib/lua/luci/model/cbi/admin/privatewifi.lua b/package/gluon-luci-private-wifi/luasrc/usr/lib/lua/luci/model/cbi/admin/privatewifi.lua index 0e04b67d..f05eaa47 100644 --- a/package/gluon-luci-private-wifi/luasrc/usr/lib/lua/luci/model/cbi/admin/privatewifi.lua +++ b/package/gluon-luci-private-wifi/luasrc/usr/lib/lua/luci/model/cbi/admin/privatewifi.lua @@ -24,6 +24,7 @@ o.rmempty = false o = s:option(Value, "ssid", translate("Name (SSID)")) o:depends("enabled", '1') +o.datatype = "maxlength(32)" o.default = ssid o = s:option(Value, "key", translate("Key"), translate("8-63 characters"))