summaryrefslogtreecommitdiffstats
path: root/lib/authenticator-plaintext.lua
diff options
context:
space:
mode:
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