diff --git a/fittrackee_client/src/components/Common/PasswordInput.vue b/fittrackee_client/src/components/Common/PasswordInput.vue
new file mode 100644
index 00000000..621a5ad5
--- /dev/null
+++ b/fittrackee_client/src/components/Common/PasswordInput.vue
@@ -0,0 +1,60 @@
+
+
+
+
+ {{ $t(`user.${showPassword ? 'HIDE' : 'SHOW'}_PASSWORD`) }}
+
+
+
+
+
+
+
diff --git a/fittrackee_client/src/components/User/ProfileEdition/UserInfosEdition.vue b/fittrackee_client/src/components/User/ProfileEdition/UserInfosEdition.vue
index fcd61937..4618fa3e 100644
--- a/fittrackee_client/src/components/User/ProfileEdition/UserInfosEdition.vue
+++ b/fittrackee_client/src/components/User/ProfileEdition/UserInfosEdition.vue
@@ -20,11 +20,10 @@
@@ -96,6 +95,7 @@
onMounted,
} from 'vue'
+ import PasswordInput from '@/components/Common/PasswordInput.vue'
import { AUTH_USER_STORE, ROOT_STORE } from '@/store/constants'
import { IUserProfile, IUserPayload } from '@/types/user'
import { useStore } from '@/use/useStore'
@@ -147,6 +147,9 @@
function updateBio(value: string) {
userForm.bio = value
}
+ function updatePassword(password: string) {
+ userForm.password = password
+ }
function updateProfile() {
store.dispatch(AUTH_USER_STORE.ACTIONS.UPDATE_USER_PROFILE, userForm)
}
@@ -158,9 +161,20 @@
}
-