MCPcopy
hub / github.com/syncthing/syncthing / handleLogout

Method handleLogout

lib/api/api_auth.go:225–228  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

destroySessionMethod · 0.80
WriteHeaderMethod · 0.45

Tested by

no test coverage detected