summaryrefslogtreecommitdiffstats
path: root/password-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'password-controller.lua')
-rw-r--r--password-controller.lua9
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