Create separate signin page, make auth redirect there.
This commit is contained in:
parent
60a1eba2eb
commit
7c2d7eef25
3 changed files with 7 additions and 1 deletions
2
auth.go
2
auth.go
|
|
@ -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"`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue