feat: add current password verification for email updates and implement tasks layout with navigation
This commit is contained in:
@@ -18,7 +18,7 @@ export const regenerateApiKey = async (): Promise<{ api_key: string }> => {
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const updateProfile = async (data: { name: string; email: string }): Promise<{ message: string }> => {
|
||||
export const updateProfile = async (data: { name: string; email: string; current_password?: string }): Promise<{ message: string }> => {
|
||||
const response = await client.post('/user/profile', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user