Check passphrase length in the UI form. Add ieee80211n/ieee80211ac.

This commit is contained in:
Alfredo Cardigliano 2020-12-07 16:32:08 +01:00
parent eb590a616d
commit 3a5fa4564a
4 changed files with 41 additions and 4 deletions

View file

@ -241,6 +241,22 @@ function prefsInputFieldPrefs(label, comment, prekey, key, default_value, _input
end
end
if extra.minlength ~= nil then
if extra.tformat ~= nil then
attributes["data-minlength"] = extra.minlength
else
attributes["minlength"] = extra.minlength
end
end
if extra.maxlength ~= nil then
if extra.tformat ~= nil then
attributes["data-maxlength"] = extra.maxlength
else
attributes["maxlength"] = extra.maxlength
end
end
if extra.step ~= nil then
if extra.tformat ~= nil then
attributes["data-step"] = extra.step