Skip to content

Commit

Permalink
Add change password api
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Nov 22, 2024
1 parent a6d9f83 commit 6357464
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions adminui2/src/api/account.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { GenericResponseDTO, ChangePasswordRequestDTO } from './types'

import { client } from '.'

export function changePassword(credentials: ChangePasswordRequestDTO): Promise<GenericResponseDTO> {
return client.put('/api/change_password', credentials).then(res => res.data)
}

0 comments on commit 6357464

Please sign in to comment.