summaryrefslogtreecommitdiffstats
path: root/app/acf-util/logon-controller.lua
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@tetrasec.net>2007-12-22 21:06:43 +0000
committerNathan Angelacos <nangel@tetrasec.net>2007-12-22 21:06:43 +0000
commit478ba3ce3d2f0f51e9867b82409d064b137c4479 (patch)
treeda8fa66331eb58126b2b46730a33ac8e3495dd98 /app/acf-util/logon-controller.lua
parentc2eda0afa22faa16595fe71f60bfd21ee57b6287 (diff)
downloadacf-core-478ba3ce3d2f0f51e9867b82409d064b137c4479.tar.bz2
acf-core-478ba3ce3d2f0f51e9867b82409d064b137c4479.tar.xz
logon works - but session table is not saved yet
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@450 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/acf-util/logon-controller.lua')
-rw-r--r--app/acf-util/logon-controller.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/acf-util/logon-controller.lua b/app/acf-util/logon-controller.lua
index 676736f..bdc2327 100644
--- a/app/acf-util/logon-controller.lua
+++ b/app/acf-util/logon-controller.lua
@@ -25,18 +25,19 @@ logon = function(self)
if clientdata.userid and clientdata.password then
local t = self.model.logon(self,clientdata.userid,clientdata.password)
-
+
if t == nil then
userid.value = self.clientdata.userid
userid.errtxt = "There was a problem logging in"
else
-- the login was successful - give them a new session, and redir to logged in
- session.id = session.random_hash ( 512)
- session.userinfo = t or {}
+ self.sessiondata.id = session.random_hash ( 512)
+ self.sessiondata.userinfo = t or {}
+ self.conf.prefix="/"
self.conf.controller="welcome"
- self.conf.action = ""
+ self.conf.action = "read"
self.conf.type = "redir"
- logevent ("Logon was successful for " .. session.userinfo.username or "" )
+ logevent ("Logon was successful for " .. self.sessiondata.userinfo.username or "" )
error (self.conf)
end
end