MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / putUser

Method putUser

rest/admin_api.go:1909–1912  ·  view source on GitHub ↗

Handles PUT or POST to /_user/*

()

Source from the content-addressed store, hash-verified

1907
1908// Handles PUT or POST to /_user/*
1909func (h *handler) putUser() error {
1910 username := mux.Vars(h.rq)["name"]
1911 return h.updatePrincipal(username, true)
1912}
1913
1914// Handles PUT or POST to /_role/*
1915func (h *handler) putRole() error {

Callers

nothing calls this directly

Calls 1

updatePrincipalMethod · 0.95

Tested by

no test coverage detected