summaryrefslogtreecommitdiffstats
path: root/lib/session.lua
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@tetrasec.net>2007-12-09 17:27:21 +0000
committerNathan Angelacos <nangel@tetrasec.net>2007-12-09 17:27:21 +0000
commit48cf8a5a2da228724e519187469539d8a006d83f (patch)
tree650f4fa1d9369d06fc7be08b9c4089b5921c41b0 /lib/session.lua
parent4daf25480c6bd4688d700ebc6f37db4001be68f8 (diff)
downloadacf-core-48cf8a5a2da228724e519187469539d8a006d83f.tar.bz2
acf-core-48cf8a5a2da228724e519187469539d8a006d83f.tar.xz
logon model stubbed in
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@420 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/session.lua')
-rw-r--r--lib/session.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/session.lua b/lib/session.lua
index 149f5aa..37dcecb 100644
--- a/lib/session.lua
+++ b/lib/session.lua
@@ -157,4 +157,16 @@ record_event = function( sessionpath, id )
(posix.getpid("pid")) or "" ), "w")
io.close(x)
end
-
+
+-- Check how many invalid login events
+-- have happened for this id in the last n minutes
+count_events = function ( sessionpath, id, minutes)
+ -- FIXME
+ return 0
+end
+
+-- Clear events that are older than n minutes
+expire_events = function (sessionpath, minutes)
+ -- FIXME
+ return 0
+end