From c2dcd9a6e48e4d92d3f4c16ca5c1ae1d519b40b5 Mon Sep 17 00:00:00 2001 From: Nathan Angelacos Date: Sun, 9 Dec 2007 18:18:41 +0000 Subject: WIP git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@422 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/authenticator-plaintext.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/authenticator-plaintext.lua') 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 -- cgit v1.2.3