Create separate signin page, make auth redirect there.

This commit is contained in:
Eli Ribble 2025-11-19 15:19:42 +00:00
parent 60a1eba2eb
commit 7c2d7eef25
No known key found for this signature in database
3 changed files with 7 additions and 1 deletions

View file

@ -63,7 +63,7 @@ func (ea *EnsureAuth) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
if content_type == "text/html" {
http.Redirect(w, r, "/login?next="+r.URL.Path, http.StatusSeeOther)
http.Redirect(w, r, "/signin?next="+r.URL.Path, http.StatusSeeOther)
return
}
w.Header().Set("WWW-Authenticate", `Basic realm="Nidus Sync"`)