(password)
| 238 | } |
| 239 | |
| 240 | export 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 | |
| 255 | export async function deleteUser(username) { |
| 256 | return fetch("/api/user", { |
nothing calls this directly
no test coverage detected