feat(auth): enhance password change flow and error handling

- Return response from useProfileSetting hook after password change
This commit is contained in:
2025-11-19 17:43:45 +08:00
parent d84fd8934e
commit 83df8a7373
10 changed files with 59 additions and 21 deletions

View File

@@ -42,6 +42,7 @@ export function useProfileSetting() {
password: oldPassword,
new_password: newPassword,
});
return res;
} catch (error) {
throw error;
}