From 2c414fb08997791cbc6fa212fb739a448131fcf3 Mon Sep 17 00:00:00 2001 From: Michal Gold Date: Tue, 4 Feb 2025 14:06:54 +0200 Subject: [PATCH] Wizard: remove confirmPassword from Mapper this commit remove confirmPassword from Mapper because we decide that this field is not relevant anymore to Users step, and it should remove from the mapper as well --- src/Components/CreateImageWizard/utilities/requestMapper.ts | 1 - src/store/wizardSlice.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Components/CreateImageWizard/utilities/requestMapper.ts b/src/Components/CreateImageWizard/utilities/requestMapper.ts index 563b1f9e..7237487d 100644 --- a/src/Components/CreateImageWizard/utilities/requestMapper.ts +++ b/src/Components/CreateImageWizard/utilities/requestMapper.ts @@ -232,7 +232,6 @@ function commonRequestToState( name: user.name, password: '', // The image-builder API does not return the password. ssh_key: user.ssh_key || '', - confirmPassword: '', groups: user.groups || [], isAdministrator: user.groups?.includes('wheel') || false, })) || [], diff --git a/src/store/wizardSlice.ts b/src/store/wizardSlice.ts index 53f14b0e..9b471633 100644 --- a/src/store/wizardSlice.ts +++ b/src/store/wizardSlice.ts @@ -906,7 +906,6 @@ export const wizardSlice = createSlice({ const newUser = { name: '', password: '', - confirmPassword: '', ssh_key: '', groups: [], isAdministrator: false,