MCPcopy Index your code
hub / github.com/tiny-pilot/tinypilot / updateUserPassword

Function updateUserPassword

app/static/js/controllers.js:225–238  ·  view source on GitHub ↗
(username, password)

Source from the content-addressed store, hash-verified

223}
224
225export async function updateUserPassword(username, password) {
226 return fetch("/api/user/password", {
227 method: "PUT",
228 headers: {
229 "X-CSRFToken": getCsrfToken(),
230 "Content-Type": "application/json",
231 },
232 credentials: "same-origin",
233 mode: "same-origin",
234 cache: "no-cache",
235 redirect: "error",
236 body: JSON.stringify({ username, password }),
237 }).then(processJsonResponse);
238}
239
240export async function updateCurrentUserPassword(password) {
241 return fetch("/api/currentUser/password", {

Callers

nothing calls this directly

Calls 1

getCsrfTokenFunction · 0.85

Tested by

no test coverage detected