summaryrefslogtreecommitdiffstats
path: root/freeradius3-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'freeradius3-model.lua')
-rw-r--r--freeradius3-model.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/freeradius3-model.lua b/freeradius3-model.lua
index aad8eae..f56951c 100644
--- a/freeradius3-model.lua
+++ b/freeradius3-model.lua
@@ -247,7 +247,7 @@ local get_passwd_entry_private = function(self, clientdata, create)
end
local hash
if passwdconfig then
- -- The filename is valid, and we should create the fields
+ -- The filename is valid, and we should create the fields
retval.value.fields = cfe({ type="group", value={}, label="Fields", seq=3, delimiter=passwdconfig.delimiter })
if not create then retval.value.entry.errtxt = "Invalid entry" end
local content = fs.read_file(retval.value.filename.value) or ""
@@ -400,7 +400,7 @@ end
function mymodule.get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-
+
function mymodule.startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -479,7 +479,7 @@ function mymodule.deletefile(self, delfile)
break
end
end
-
+
return delfile
end
@@ -584,7 +584,7 @@ function mymodule.get_passwd(self, clientdata)
usernamefield = i
end
end
-
+
local contenttable = fs.read_file_as_array(retval.value.filename.value) or {}
local entry = tonumber(retval.value.entry.value) or 0
if contenttable[entry] then