Add Docker/systemd deployment, documentation, extauth logout URL wiring
This commit is contained in:
@@ -65,7 +65,11 @@ func (h *Web) loginFailed(w http.ResponseWriter, r *http.Request, next string) {
|
||||
|
||||
func (h *Web) handleLogout(w http.ResponseWriter, r *http.Request) {
|
||||
h.Sessions.Clear(w, r)
|
||||
http.Redirect(w, r, "/login", http.StatusFound)
|
||||
dest := "/login"
|
||||
if h.Config.ExtAuth.Enabled && h.Config.ExtAuth.LogoutURL != "" {
|
||||
dest = h.Config.ExtAuth.LogoutURL
|
||||
}
|
||||
http.Redirect(w, r, dest, http.StatusFound)
|
||||
}
|
||||
|
||||
// --- First-run setup ---
|
||||
|
||||
Reference in New Issue
Block a user