chore: remove recovery flow

This commit is contained in:
2026-04-18 23:17:14 +02:00
parent 4b95a590b7
commit a2dad9410f
6 changed files with 1 additions and 125 deletions

View File

@@ -60,7 +60,7 @@ func RequireAuth(next http.Handler) http.Handler {
func RequireGlobalAuth(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// Allow unauthenticated access to auth pages, search, and static files
if r.URL.Path == "/login" || r.URL.Path == "/recover" ||
if r.URL.Path == "/login" ||
strings.HasPrefix(r.URL.Path, "/static/") || strings.HasPrefix(r.URL.Path, "/dist/") ||
r.URL.Path == "/search" || r.URL.Path == "/api/search" || r.URL.Path == "/api/search-quick" ||
r.URL.Path == "/" {