diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-13 20:51:39 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-13 20:51:39 +0000 |
commit | 4329b7b6da85440f537da8e4c1b9da1150912df3 (patch) | |
tree | 7733780e543cd6e738405f72114f94ffc8ecee6a /password-controller.lua | |
parent | 303266d5fc5c1463a2aeecb2b4cc801b81ddfb06 (diff) | |
download | acf-alpine-baselayout-4329b7b6da85440f537da8e4c1b9da1150912df3.tar.bz2 acf-alpine-baselayout-4329b7b6da85440f537da8e4c1b9da1150912df3.tar.xz |
Added alpine-baselayout hostname and password edit.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1556 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'password-controller.lua')
-rw-r--r-- | password-controller.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/password-controller.lua b/password-controller.lua index a9e28c7..3060e76 100644 --- a/password-controller.lua +++ b/password-controller.lua @@ -1,9 +1,10 @@ -- the password controller - module (..., package.seeall) -default_action = "update" +require("controllerfunctions") + +default_action = "edit" -update = function (self,self.sessionid.userid) - return ( {report = self.model:set() }) +edit = function (self) + return controllerfunctions.handle_form(self, self.model.read_password, self.model.update_password, self.clientdata, "Save", "Set System Password", "Password Set") end |