From 9b52a88e971e70facc74778c133244f8a93b1f31 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 19 May 2024 07:15:20 +0300 Subject: Enha: avoid panic; check password at login --- assets/style.css | 4 ++++ components/error.html | 2 +- internal/handlers/auth.go | 32 ++++++++++++++++++++++++-------- internal/handlers/elements.go | 6 ++++-- internal/handlers/main.go | 26 ++++++++++++++++---------- 5 files changed, 49 insertions(+), 21 deletions(-) diff --git a/assets/style.css b/assets/style.css index 5d2f089..d71d3fd 100644 --- a/assets/style.css +++ b/assets/style.css @@ -41,3 +41,7 @@ tr{ padding: none; width: auto; } +#errorbox{ + border: 1px solid black; + background-color: darkorange; +} diff --git a/components/error.html b/components/error.html index 51b6b05..2fe8b70 100644 --- a/components/error.html +++ b/components/error.html @@ -1,6 +1,6 @@ {{define "error"}} -