fix: Prevent display_name reset when updating password (#10374)

Fixes #10372

---------
Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
Alex808r
2025-06-12 02:05:30 +03:00
committed by GitHub
parent c8f5633d9d
commit 0d05a07aa7
5 changed files with 37 additions and 14 deletions

View File

@@ -135,6 +135,16 @@ export const actions = {
}
},
updatePassword: async ({ commit }, params) => {
// eslint-disable-next-line no-useless-catch
try {
const response = await authAPI.profilePasswordUpdate(params);
commit(types.SET_CURRENT_USER, response.data);
} catch (error) {
throw error;
}
},
deleteAvatar: async ({ commit }) => {
try {
const response = await authAPI.deleteAvatar();