summaryrefslogtreecommitdiffstats
path: root/lib/authenticator-plaintext.lua
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@tetrasec.net>2007-12-09 18:18:41 +0000
committerNathan Angelacos <nangel@tetrasec.net>2007-12-09 18:18:41 +0000
commitc2dcd9a6e48e4d92d3f4c16ca5c1ae1d519b40b5 (patch)
tree5ab141304ebbb6cfd880e444441ee301135f1ba9 /lib/authenticator-plaintext.lua
parent1197c8530638be7e8123301f47ca863cd9598338 (diff)
downloadacf-core-c2dcd9a6e48e4d92d3f4c16ca5c1ae1d519b40b5.tar.bz2
acf-core-c2dcd9a6e48e4d92d3f4c16ca5c1ae1d519b40b5.tar.xz
WIP
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@422 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/authenticator-plaintext.lua')
-rw-r--r--lib/authenticator-plaintext.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/authenticator-plaintext.lua b/lib/authenticator-plaintext.lua
index d18f5bb..21b3a48 100644
--- a/lib/authenticator-plaintext.lua
+++ b/lib/authenticator-plaintext.lua
@@ -42,7 +42,7 @@ pvt.parse_authfile = function(filename)
end
return row
else
- return false
+ return nil
end
end
@@ -82,10 +82,10 @@ authenticate = function ( self, userid, password )
-- This function returns the username and roles
-- or false on an error
-userinfo = function ( self, userid )
+get_userinfo = function ( self, userid )
local t = pvt.parse_authfile(self.conf.confdir .. "/passwd")
if t == false then
- return false
+ return nil
else
pvt.get_id (userid, t)
end