commit cac45fb0c0b1f83c043e7fcf0931371a1998e7e7
parent 6af29ceaaf59a842312477d0f4d4437661f65ef4
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 14 Dec 2022 20:41:39 -0500
disable signup endpoint if protect home is enabled
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -748,6 +748,9 @@ func SignalCss(c echo.Context) error {
// SignupHandler ...
func SignupHandler(c echo.Context) error {
+ if config.ProtectHome.IsTrue() {
+ return c.NoContent(http.StatusNotFound)
+ }
if config.SignupFakeEnabled.IsFalse() && config.SignupEnabled.IsFalse() {
return c.Render(http.StatusOK, "signup-invite", nil)
}