summaryrefslogtreecommitdiffstats
path: root/lib/authenticator-plaintext.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 /lib/authenticator-plaintext.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 'lib/authenticator-plaintext.lua')
-rw-r--r--lib/authenticator-plaintext.lua4
1 files changed, 2 insertions, 2 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