feat: add current password verification for email updates and implement tasks layout with navigation

This commit is contained in:
Wikid82
2025-11-21 13:37:19 -05:00
parent a00dea5419
commit 50e4932148
9 changed files with 199 additions and 56 deletions

View File

@@ -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
}