diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-01-24 22:24:30 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-01-24 22:24:30 +0000 |
commit | 43ac64370f5e8d53ecf874048c27d493c5bc01b4 (patch) | |
tree | a560b46ea47a32929e4cfa894309997cb35b2cfe /app/acf-util/logon-model.lua | |
parent | b42210d80281189875c652909b971fcb514ec8b2 (diff) | |
download | acf-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/logon-model.lua')
-rw-r--r-- | app/acf-util/logon-model.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/acf-util/logon-model.lua b/app/acf-util/logon-model.lua index 0cfba7f..3394445 100644 --- a/app/acf-util/logon-model.lua +++ b/app/acf-util/logon-model.lua @@ -45,9 +45,9 @@ end mymodule.logon = function (self, logon) logon.errtxt = "Logon Attempt Failed" -- Check to see if we can log on this user id / ip addr - local countevent = session.count_events(self.conf.sessiondir, logon.value.userid.value, session.hash_ip_addr(self.conf.clientip), self.conf.lockouttime, self.conf.lockouteventlimit) + local countevent = session.count_events(self.conf.sessiondir, logon.value.userid.value, self.conf.clientip, self.conf.lockouttime, self.conf.lockouteventlimit) if countevent then - session.record_event(self.conf.sessiondir, logon.value.userid.value, session.hash_ip_addr(self.conf.clientip)) + session.record_event(self.conf.sessiondir, logon.value.userid.value, self.conf.clientip) end if false == countevent then @@ -71,7 +71,7 @@ mymodule.logon = function (self, logon) logon.errtxt = nil else -- We have a bad logon, log the event - session.record_event(self.conf.sessiondir, logon.value.userid.value, session.hash_ip_addr(self.conf.clientip)) + session.record_event(self.conf.sessiondir, logon.value.userid.value, self.conf.clientip) end end return logon |