diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/authenticator-plaintext.lua | 6 |
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 |