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-11 19:05:30 -04:00
committed by GitHub
co-authored by Pranav
parent c8f5633d9d
commit 0d05a07aa7
5 changed files with 37 additions and 14 deletions
@@ -62,10 +62,10 @@ export default {
}
let alertMessage = this.$t('PROFILE_SETTINGS.PASSWORD_UPDATE_SUCCESS');
try {
await this.$store.dispatch('updateProfile', {
await this.$store.dispatch('updatePassword', {
password: this.password,
password_confirmation: this.passwordConfirmation,
current_password: this.currentPassword,
passwordConfirmation: this.passwordConfirmation,
currentPassword: this.currentPassword,
});
} catch (error) {
alertMessage =