(w http.ResponseWriter, r *http.Request)
| 223 | } |
| 224 | |
| 225 | func (m *basicAuthAndSessionMiddleware) handleLogout(w http.ResponseWriter, r *http.Request) { |
| 226 | m.tokenCookieManager.destroySession(w, r) |
| 227 | w.WriteHeader(http.StatusNoContent) |
| 228 | } |
| 229 | |
| 230 | func auth(username string, password string, guiCfg config.GUIConfiguration, ldapCfg config.LDAPConfiguration) bool { |
| 231 | if guiCfg.AuthMode == config.AuthModeLDAP { |
nothing calls this directly
no test coverage detected