CreateImageWizard: don't obscure activation key

Activation key was previously obscured by stars, instead just show it
(both in the input and in the review step) as it isn't secret.
This commit is contained in:
Chloe Kaubisch 2021-11-22 19:53:49 +01:00 committed by Sanne Raymaekers
parent 054a8d1752
commit c6f74efcb3
3 changed files with 3 additions and 2 deletions

View file

@ -128,7 +128,7 @@ const ReviewStep = () => {
Activation key
</TextListItem>
<TextListItem component={ TextListItemVariants.dd }>
{'*'.repeat(getState()?.values?.['subscription-activation']?.length)}
{getState()?.values?.['subscription-activation']}
</TextListItem>
</TextList>
</TextContent>

View file

@ -47,7 +47,7 @@ export default (user) => ({
name: 'subscription-activation',
'data-testid': 'subscription-activation',
required: true,
type: 'password',
type: 'text',
label: 'Activation key',
condition: {
or: [

View file

@ -369,6 +369,7 @@ describe('Step Registration', () => {
screen.getByRole('button', { name: /Next/ }).click();
screen.getByRole('button', { name: /Next/ }).click();
await screen.findByText('Register the system on first boot');
await screen.findAllByText('012345678901');
});
test('should hide input fields when clicking Register the system later', async () => {