diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/authenticator-plaintext.lua | 4 | ||||
-rw-r--r-- | lib/session.lua | 2 |
2 files changed, 3 insertions, 3 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 diff --git a/lib/session.lua b/lib/session.lua index 37dcecb..1c59df0 100644 --- a/lib/session.lua +++ b/lib/session.lua @@ -89,7 +89,7 @@ end save_session = function( sessionpath, session, sessiontable) local file = io.open(sessionpath .. "/session." .. session , "w") if file == nil then - return false + return nil end local id = sessiontable.id |