From 814429470ad700066026182ba5c00516558f57a2 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 4 Nov 2008 20:58:50 +0000 Subject: Modified openssh to allow deleting and adding certs from authorized_keys. git-svn-id: svn://svn.alpinelinux.org/acf/openssh/trunk@1577 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openssh-controller.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'openssh-controller.lua') diff --git a/openssh-controller.lua b/openssh-controller.lua index 6a76512..2ebf0da 100644 --- a/openssh-controller.lua +++ b/openssh-controller.lua @@ -24,3 +24,19 @@ end function connectedpeers(self) return self.model.list_conn_peers() end + +function listusers(self) + return self.model.list_users() +end + +function listauth(self) + return self.model.list_auths(self.clientdata.user) +end + +function deleteauth(self) + return self:redirect_to_referrer(self.model.delete_auth(self.clientdata.user, self.clientdata.auth)) +end + +function addauth(self) + return controllerfunctions.handle_form(self, function() return self.model.get_auth(self.clientdata.user) end, self.model.create_auth, self.clientdata, "Add", "Add New Authorized Key", "Key Added") +end -- cgit v1.2.3