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

Function updateCurrentUserPassword

app/static/js/controllers.js:240–253  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

238}
239
240export async function updateCurrentUserPassword(password) {
241 return fetch("/api/currentUser/password", {
242 method: "PUT",
243 headers: {
244 "X-CSRFToken": getCsrfToken(),
245 "Content-Type": "application/json",
246 },
247 credentials: "same-origin",
248 mode: "same-origin",
249 cache: "no-cache",
250 redirect: "error",
251 body: JSON.stringify({ password }),
252 }).then(processJsonResponse);
253}
254
255export async function deleteUser(username) {
256 return fetch("/api/user", {

Callers

nothing calls this directly

Calls 1

getCsrfTokenFunction · 0.85

Tested by

no test coverage detected