summaryrefslogtreecommitdiffstats
path: root/app/acf-util/password-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-19 12:46:20 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-19 12:46:20 +0000
commitb729270c2e5135cf1e0063d16df34350af95cdf6 (patch)
tree63db9f0e2d6bb8c2644fa631408bddd4f98ba710 /app/acf-util/password-controller.lua
parent8e27cd0b719015f206e4d64355d045ff22ee096f (diff)
downloadacf-core-b729270c2e5135cf1e0063d16df34350af95cdf6.tar.bz2
acf-core-b729270c2e5135cf1e0063d16df34350af95cdf6.tar.xz
Updated password to remove redirect_to_referrer and password-html view
Diffstat (limited to 'app/acf-util/password-controller.lua')
-rw-r--r--app/acf-util/password-controller.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/acf-util/password-controller.lua b/app/acf-util/password-controller.lua
index 336f6f4..5ff8145 100644
--- a/app/acf-util/password-controller.lua
+++ b/app/acf-util/password-controller.lua
@@ -72,5 +72,9 @@ function newuser(self)
end
function deleteuser(self)
- return self:redirect_to_referrer(self.model.delete_user(self, self.clientdata.userid))
+ return self.handle_form(self, function()
+ return self.model.get_delete_user(self, self.clientdata.userid)
+ end, function(value)
+ return self.model.delete_user(self, value)
+ end, self.clientdata, "Delete", "Delete User", "Deleted user")
end