commit 69508c441c3c50153e3169f98b1ef5e5cee61693
parent cac45fb0c0b1f83c043e7fcf0931371a1998e7e7
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 14 Dec 2022 20:44:43 -0500
fix signup endpoints
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -617,7 +617,7 @@ func SignupAttackHandler(c echo.Context) error {
return c.NoContent(http.StatusNotFound)
}
- return SignupHandler(c)
+ return tmpSignupHandler(c)
}
// SignupInvitationHandler ...
@@ -751,6 +751,10 @@ func SignupHandler(c echo.Context) error {
if config.ProtectHome.IsTrue() {
return c.NoContent(http.StatusNotFound)
}
+ return tmpSignupHandler(c)
+}
+
+func tmpSignupHandler(c echo.Context) error {
if config.SignupFakeEnabled.IsFalse() && config.SignupEnabled.IsFalse() {
return c.Render(http.StatusOK, "signup-invite", nil)
}