···141141142142 l.Info("checking domain")
143143144144+ registration, err := db.RegistrationByDomain(k.Db, domain)
145145+ if err != nil {
146146+ l.Error("failed to get registration for domain", "err", err)
147147+ fail()
148148+ return
149149+ }
150150+ if registration.ByDid != user.Did {
151151+ l.Error("unauthorized", "wantedDid", registration.ByDid, "gotDid", user.Did)
152152+ w.WriteHeader(http.StatusUnauthorized)
153153+ return
154154+ }
155155+144156 secret, err := db.GetRegistrationKey(k.Db, domain)
145157 if err != nil {
146158 l.Error("failed to get registration key for domain", "err", err)
+1-1
appview/pages/templates/knots/index.html
···1919 <p class="dark:text-gray-300">
2020 Knots are lightweight headless servers that enable users to host Git repositories with ease.
2121 Knots are designed for either single or multi-tenant use which is perfect for self-hosting on a Raspberry Pi at home, or larger “community” servers.
2222- By default, Tangled provides managed knots where you can host your repositories for free.
2222+ When creating a repository, you can choose a knot to store it on.
2323 <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md">
2424 Checkout the documentation if you're interested in self-hosting.
2525 </a>