Skip to content

Commit 3992923

Browse files
committed
Fix password update in user edit form
1 parent 98d95e3 commit 3992923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/authority/UserEditCreate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ async function onSubmit() {
410410
411411
try {
412412
if (props.mode === 'EDIT') { // edit mode
413-
await backend.users.updateUser(props.id, data);
413+
await backend.users.updateUser(props.id, { ...data, password: password.value || undefined });
414414
router.push(`/app/users/${props.id}`); // navigate to user detail page after save
415415
} else { // create mode
416416
await backend.users.createUser({ ...data, password: password.value });

0 commit comments

Comments
 (0)