From d2e2f41dfb87ff196634dad0db3a1e78eb69ce02 Mon Sep 17 00:00:00 2001 From: Robin Malley Date: Tue, 19 May 2020 17:12:44 -0400 Subject: [PATCH] Remove error from login page A global variable might show up on the login page, remove it. --- src/lua/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lua/init.lua b/src/lua/init.lua index 19e225f..4e2d932 100644 --- a/src/lua/init.lua +++ b/src/lua/init.lua @@ -724,7 +724,9 @@ function login(req) if method == "GET" then --Just give them the login page text = render(host..path,function() - return pages.login{} + return pages.login{ + err = "", + } end) elseif method == "POST" then --Try to log in