From 1def8b70683df9dd195a4ad3c02aa27c3c6b3e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 24 Oct 2018 22:01:09 +0200 Subject: Add better debug info. --- hugo-authentication.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hugo-authentication.lua b/hugo-authentication.lua index 658e9d3..6f99df5 100644 --- a/hugo-authentication.lua +++ b/hugo-authentication.lua @@ -56,6 +56,8 @@ function printenv(arg) -- print "!!!" -- html ("!!!") -- print ("

body

") + io.stderr:write(os.time(os.date("!*t"))) + io.stderr:write("\n") io.stderr:write(arg); for _, attr in pairs(keys) do local l = os.getenv(attr) @@ -82,6 +84,7 @@ end -- TODO invalid login also kinda breaks the page... Not found should return the -- user to the login page with an error messsage displaed. function authenticate_post() + printenv("Authenticate Post\n=================\n"); local password = users[post["username"]] local redirect = validate_value("redirect", post["redirect"]) -- cgit v1.2.3
KeyValue