MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / removeUser

Function removeUser

src/octoprint/server/api/users.py:98–106  ·  view source on GitHub ↗
(username)

Source from the content-addressed store, hash-verified

96@restricted_access
97@admin_permission.require(http_exception=403)
98def removeUser(username):
99 if userManager is None:
100 return jsonify(SUCCESS)
101
102 try:
103 userManager.removeUser(username)
104 return getUsers()
105 except users.UnknownUser:
106 abort(404)
107
108
109@api.route("/users/<username>/password", methods=["PUT"])

Callers

nothing calls this directly

Calls 2

getUsersFunction · 0.85
removeUserMethod · 0.45

Tested by

no test coverage detected