dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit e63d59b5fa82054abd1f5f2e19a60edeb2214423
parent 69508c441c3c50153e3169f98b1ef5e5cee61693
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 14 Dec 2022 20:49:27 -0500

doc

Diffstat:
Mpkg/web/middlewares/middlewares.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/pkg/web/middlewares/middlewares.go b/pkg/web/middlewares/middlewares.go @@ -441,6 +441,8 @@ func MaintenanceMiddleware(next echo.HandlerFunc) echo.HandlerFunc { } } +// MaybeAuthMiddleware let un-authenticated users access the page if MaybeAuthEnabled is enabled. +// Otherwise, the user needs to be authenticated to access the page. func MaybeAuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { if config.MaybeAuthEnabled.IsFalse() {