diff --git a/admin-ui/plugins/user-management/components/UserManagement/UserForm.js b/admin-ui/plugins/user-management/components/UserManagement/UserForm.js index deb4903f1..08c083827 100644 --- a/admin-ui/plugins/user-management/components/UserManagement/UserForm.js +++ b/admin-ui/plugins/user-management/components/UserManagement/UserForm.js @@ -30,8 +30,15 @@ function UserForm({ formik }) { const submitChangePassword = () => { const submitableValue = { - userPassword: formik.values.userPassword, inum: userDetails.inum, + jsonPatchString: '[]', + customAttributes: [ + { + name: 'userPassword', + multiValued: false, + values: [formik.values.userPassword], + }, + ], } dispatch(changeUserPassword(submitableValue)) toggleChangePasswordModal() @@ -89,7 +96,9 @@ function UserForm({ formik }) { const tempList = [...selectedClaims] for (const i in userDetails.customAttributes) { if (userDetails.customAttributes[i].values) { - const data = getCustomAttributeById(userDetails.customAttributes[i].name) + const data = getCustomAttributeById( + userDetails.customAttributes[i].name, + ) if ( data && !usedClaimes.includes(userDetails.customAttributes[i].name) @@ -169,16 +178,16 @@ function UserForm({ formik }) { {formik.values?.userPassword?.length > 3 && - formik.values?.userPassword == - formik.values.userConfirmPassword && ( - - )} + formik.values?.userPassword == + formik.values.userConfirmPassword && ( + + )}