diff options
-rw-r--r-- | app/acf-util/logon-controller.lua | 5 | ||||
-rw-r--r-- | app/welcome-html.lsp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/app/acf-util/logon-controller.lua b/app/acf-util/logon-controller.lua index 1dc3360..8d4f57e 100644 --- a/app/acf-util/logon-controller.lua +++ b/app/acf-util/logon-controller.lua @@ -11,9 +11,10 @@ logon = function(self) local cmdresult = cfe({ type="form", value={userid=userid, password=password}, label="Logon" }) if clientdata.userid and clientdata.password then local logon = self.model:logon(clientdata, conf.clientip, conf.sessiondir, sessiondata) - -- If successful logon, redirect to status, otherwise try again + -- If successful logon, redirect to welcome-page, otherwise try again if logon.value then - redirect(self, "status") + self.conf.controller = "" + redirect(self, "") else cmdresult.errtxt = "Logon Attempt Failed" end diff --git a/app/welcome-html.lsp b/app/welcome-html.lsp index b961a83..6996fb0 100644 --- a/app/welcome-html.lsp +++ b/app/welcome-html.lsp @@ -2,4 +2,4 @@ <h1>Alpine Configuration Framework</h1> <p>Welcome.</p> -<? io.write(html.cfe_unpack(view)) ?> +<? -- io.write(html.cfe_unpack(view)) ?> |