diff options
author | Nathan Angelacos <nangel@tetrasec.net> | 2007-12-22 21:06:43 +0000 |
---|---|---|
committer | Nathan Angelacos <nangel@tetrasec.net> | 2007-12-22 21:06:43 +0000 |
commit | 478ba3ce3d2f0f51e9867b82409d064b137c4479 (patch) | |
tree | da8fa66331eb58126b2b46730a33ac8e3495dd98 /lib | |
parent | c2eda0afa22faa16595fe71f60bfd21ee57b6287 (diff) | |
download | acf-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 'lib')
-rw-r--r-- | lib/authenticator-plaintext.lua | 4 | ||||
-rw-r--r-- | lib/session.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/authenticator-plaintext.lua b/lib/authenticator-plaintext.lua index 21b3a48..8466ed3 100644 --- a/lib/authenticator-plaintext.lua +++ b/lib/authenticator-plaintext.lua @@ -47,7 +47,7 @@ pvt.parse_authfile = function(filename) end pvt.get_id = function(userid, authstruct) - if authstruct == nil then return false end + if authstruct == nil then return nil end for x = 1,#authstruct do if authstruct[x].userid == userid then return authstruct[x] @@ -87,7 +87,7 @@ get_userinfo = function ( self, userid ) if t == false then return nil else - pvt.get_id (userid, t) + return pvt.get_id (userid, t) end end diff --git a/lib/session.lua b/lib/session.lua index 37dcecb..1c59df0 100644 --- a/lib/session.lua +++ b/lib/session.lua @@ -89,7 +89,7 @@ end save_session = function( sessionpath, session, sessiontable) local file = io.open(sessionpath .. "/session." .. session , "w") if file == nil then - return false + return nil end local id = sessiontable.id |