diff options
-rw-r--r-- | acf.conf | 4 | ||||
-rw-r--r-- | app/acf-util/logon-controller.lua | 3 | ||||
-rw-r--r-- | app/acf-util/logon-model.lua | 2 |
3 files changed, 4 insertions, 5 deletions
@@ -1,5 +1,5 @@ appdir=/usr/share/acf/app/ libdir=/usr/share/acf/lib/ -skin=simple +#skin=simple # if you find 'simple' ugly, try 'static' -#skin=static +skin=static diff --git a/app/acf-util/logon-controller.lua b/app/acf-util/logon-controller.lua index f641d33..676736f 100644 --- a/app/acf-util/logon-controller.lua +++ b/app/acf-util/logon-controller.lua @@ -39,7 +39,7 @@ logon = function(self) logevent ("Logon was successful for " .. session.userinfo.username or "" ) error (self.conf) end - else + end -- If we reach this point, just give them the login page return ( cfe ({type="form", option={ script=ENV["SCRIPT_NAME"], @@ -47,7 +47,6 @@ logon = function(self) controller = self.conf.controller, action = "logon" }, value = { userid, password, logon } })) - end end diff --git a/app/acf-util/logon-model.lua b/app/acf-util/logon-model.lua index 6e8384d..3c89a2a 100644 --- a/app/acf-util/logon-model.lua +++ b/app/acf-util/logon-model.lua @@ -29,7 +29,7 @@ logon = function (self, id, password ) if auth.authenticate (self, id, password) then return auth.get_userinfo (self, id) else - return false + return nil end end |