+f = SimpleForm("sshkeys", translate("<abbr title=\"Secure Shell\">SSH</abbr>-Keys"), translate("Here you can paste public <abbr title=\"Secure Shell\">SSH</abbr>-Keys (one per line) for <abbr title=\"Secure Shell\">SSH</abbr> public-key authentication."))
t = f:field(TextValue, "keys")
t = f:field(TextValue, "keys")
+t.rmempty = true
t.rows = 10
function t.cfgvalue()
t.rows = 10
function t.cfgvalue()
- return luci.fs.readfile(keyfile) or ""
+ return nixio.fs.readfile(keyfile) or ""
end
function f.handle(self, state, data)
if state == FORM_VALID then
end
function f.handle(self, state, data)
if state == FORM_VALID then
- if (luci.fs.readfile(keyfile) or "") ~= data.keys then