summaryrefslogtreecommitdiffstats
path: root/app/acf-util/password-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-01-24 22:24:30 +0000
committerTed Trask <ttrask01@yahoo.com>2016-01-24 22:24:30 +0000
commit43ac64370f5e8d53ecf874048c27d493c5bc01b4 (patch)
treea560b46ea47a32929e4cfa894309997cb35b2cfe /app/acf-util/password-controller.lua
parentb42210d80281189875c652909b971fcb514ec8b2 (diff)
downloadacf-core-43ac64370f5e8d53ecf874048c27d493c5bc01b4.tar.bz2
acf-core-43ac64370f5e8d53ecf874048c27d493c5bc01b4.tar.xz
Add password.listlockevents/unlockuser/unlockip actions to acf-util
password.status now reports locked status for each user Modified session lib to add list_events/delete_events Changed session.record_event/count_events to take IP rather than hash
Diffstat (limited to 'app/acf-util/password-controller.lua')
-rw-r--r--app/acf-util/password-controller.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/acf-util/password-controller.lua b/app/acf-util/password-controller.lua
index 264aadc..b457350 100644
--- a/app/acf-util/password-controller.lua
+++ b/app/acf-util/password-controller.lua
@@ -25,4 +25,16 @@ function mymodule.deleteuser(self)
return self.handle_form(self, self.model.get_delete_user, self.model.delete_user, self.clientdata, "Delete", "Delete User", "Deleted user")
end
+function mymodule.listlockevents(self)
+ return self.model.list_lock_events(self, self.clientdata)
+end
+
+function mymodule.unlockuser(self)
+ return self.handle_form(self, self.model.get_unlock_user, self.model.unlock_user, self.clientdata, "Unlock", "Unlock User", "Unlocked user")
+end
+
+function mymodule.unlockip(self)
+ return self.handle_form(self, self.model.get_unlock_ip, self.model.unlock_ip, self.clientdata, "Unlock", "Unlock IP Address", "Unlocked IP address")
+end
+
return mymodule