MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / changePassword

Method changePassword

frontend/src/lib/api/userService.ts:33–41  ·  view source on GitHub ↗
(
    currentPassword: string,
    newPassword: string
  )

Source from the content-addressed store, hash-verified

31 }
32
33 async changePassword(
34 currentPassword: string,
35 newPassword: string
36 ): Promise<{ message: string }> {
37 return apiClient.post<{ message: string }>('/users/change-password', {
38 currentPassword,
39 newPassword,
40 });
41 }
42
43 async deleteAccount(password: string): Promise<{ message: string }> {
44 return apiClient.delete<{ message: string }>('/users/account', {

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected