diff options
-rw-r--r-- | password-model.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/password-model.lua b/password-model.lua index 90fa50d..eeabd9c 100644 --- a/password-model.lua +++ b/password-model.lua @@ -1,6 +1,5 @@ -- password model methods module (..., package.seeall) -strsplit = require "split" require "fs" -- no initializer in model - use controller.init for that @@ -8,7 +7,7 @@ require "fs" get = function (self) f = io.open ("/etc/shadow") c = f:read("*l") - temp = strsplit(":", c) + temp = fs.string_to_table(":", c) if temp[2] == "!" then status = "not set" else |