(username, password)
| 223 | } |
| 224 | |
| 225 | export 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 | |
| 240 | export async function updateCurrentUserPassword(password) { |
| 241 | return fetch("/api/currentUser/password", { |
nothing calls this directly
no test coverage detected