diff options
Diffstat (limited to 'tmppassword-controller.lua')
-rwxr-xr-x | tmppassword-controller.lua | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tmppassword-controller.lua b/tmppassword-controller.lua deleted file mode 100755 index c19d6b4..0000000 --- a/tmppassword-controller.lua +++ /dev/null @@ -1,47 +0,0 @@ -module(..., package.seeall) - -local list_redir = function (self) - self.conf.action = "status" - self.conf.type = "redir" - error (self.conf) -end - -mvc = {} -mvc.on_load = function(self, parent) - if (self.worker[self.conf.action] == nil ) or ( self.conf.action == "init" ) then - self.worker[self.conf.action] = list_redir(self) - end -end - -function status(self) - local status=self.model.getstatus(self) - status.cmdnew = cfe ({ - name="cmdnew", - type="submit", - label="Create new account", - value="Create", - disabled="yes", - }) - return { status=status } -end - -function edit(self) - local config=self.model.getsettings(self.clientdata.userid) - config.cmdsave = cfe ({ - name="cmdsave", - type="submit", - label="Save changes", - value="Save", - disabled="yes", - }) - config.cmddelete = cfe ({ - name="cmddelete", - type="submit", - label="Delete this account", - value="Delete", - disabled="yes", - }) - - return { config=config, clientdata=self.clientdata } -end - |