diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-05-30 20:08:26 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-05-30 20:08:26 +0000 |
commit | 2d34b61db1eb8f4f59ee22907c98a911eddcee9f (patch) | |
tree | 6ab9c6cafcc83083c0a43603613e8c590f92895e /app/acf-util/logon-model.lua | |
parent | d2dcdd318768ba7e0ddc06afee908c85ba8b98cd (diff) | |
download | acf-core-2d34b61db1eb8f4f59ee22907c98a911eddcee9f.tar.bz2 acf-core-2d34b61db1eb8f4f59ee22907c98a911eddcee9f.tar.xz |
Change logon/logout action to logon/logoff and standardize on logon/off instead of login/out
Diffstat (limited to 'app/acf-util/logon-model.lua')
-rw-r--r-- | app/acf-util/logon-model.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/acf-util/logon-model.lua b/app/acf-util/logon-model.lua index 40a533e..833d665 100644 --- a/app/acf-util/logon-model.lua +++ b/app/acf-util/logon-model.lua @@ -22,9 +22,9 @@ logoff = function (sessiondir, sessiondata) end -- Log on new user if possible and set up userinfo in session --- if we fail, we leave the session alone (don't log out) +-- if we fail, we leave the session alone (don't log off) logon = function (self, userid, password, ip_addr, sessiondir, sessiondata) - -- Check to see if we can login this user id / ip addr + -- Check to see if we can log on this user id / ip addr local countevent = session.count_events(sessiondir, userid, session.hash_ip_addr(ip_addr), self.conf.lockouttime, self.conf.lockouteventlimit) if countevent then session.record_event(sessiondir, userid, session.hash_ip_addr(ip_addr)) @@ -32,9 +32,9 @@ logon = function (self, userid, password, ip_addr, sessiondir, sessiondata) if false == countevent and userid and password then if authenticator.authenticate (self, userid, password) then - -- We have a successful login, change sessiondata + -- We have a successful logon, change sessiondata -- for some reason, can't call this function or it skips rest of logon - -- logout(sessiondir, sessiondata) + -- logoff(sessiondir, sessiondata) ---[[ so, do this instead session.unlink_session(sessiondir, sessiondata.id) -- Clear the current session data @@ -50,7 +50,7 @@ logon = function (self, userid, password, ip_addr, sessiondir, sessiondata) end return cfe({ type="boolean", value=true, label="Logon Success" }) else - -- We have a bad login, log the event + -- We have a bad logon, log the event session.record_event(sessiondir, userid, session.hash_ip_addr(ip_addr)) end end |