From fbbce403e275219779a7a5b153953f3fc6a60d58 Mon Sep 17 00:00:00 2001 From: Floriansylvain Date: Mon, 22 Dec 2025 03:07:30 +0100 Subject: [PATCH] fix: allowed register condition --- api/handlers/auth/authHandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handlers/auth/authHandler.go b/api/handlers/auth/authHandler.go index be0fef6..56c7bf0 100644 --- a/api/handlers/auth/authHandler.go +++ b/api/handlers/auth/authHandler.go @@ -153,7 +153,7 @@ func (h *Handler) Login(w http.ResponseWriter, r *http.Request) { } func (h *Handler) Register(w http.ResponseWriter, r *http.Request) { - if !h.IsLoggedIn(r) && !h.SomeUsersVerified() { + if h.SomeUsersVerified() { http.Error(w, "You are not allowed to create a user. Log in or reset database.", http.StatusForbidden) return }