From 51dadcecef67bdbd1027f5800e1904ea1d03720b Mon Sep 17 00:00:00 2001 From: Thomas Miceli Date: Wed, 12 Apr 2023 13:30:51 +0200 Subject: [PATCH] Change redirections when not logged in --- internal/web/run.go | 2 +- templates/base/base_header.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/web/run.go b/internal/web/run.go index 978e43d..1d66e64 100644 --- a/internal/web/run.go +++ b/internal/web/run.go @@ -300,7 +300,7 @@ func logged(next echo.HandlerFunc) echo.HandlerFunc { if user != nil { return next(ctx) } - return redirect(ctx, "/all") + return redirect(ctx, "/login") } } diff --git a/templates/base/base_header.html b/templates/base/base_header.html index c60d048..7abf7d5 100644 --- a/templates/base/base_header.html +++ b/templates/base/base_header.html @@ -43,8 +43,8 @@