summaryrefslogtreecommitdiffstats
path: root/app/acf-util/logon-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'app/acf-util/logon-model.lua')
-rw-r--r--app/acf-util/logon-model.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/acf-util/logon-model.lua b/app/acf-util/logon-model.lua
index dac48cd..6e8384d 100644
--- a/app/acf-util/logon-model.lua
+++ b/app/acf-util/logon-model.lua
@@ -26,7 +26,11 @@ logon = function (self, id, password )
-- record event and ignore the attempt
-- All ok?
-- look up their role, issue new session
- return auth.authenticate (self, id, password)
+ if auth.authenticate (self, id, password) then
+ return auth.get_userinfo (self, id)
+ else
+ return false
+ end
end
logoff = function (self, sessionid)