fix: allowed register condition

This commit is contained in:
Floriansylvain
2025-12-22 03:07:30 +01:00
parent 9c80cb9885
commit fbbce403e2
+1 -1
View File
@@ -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
}