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:
parent
054a8d1752
commit
c6f74efcb3
3 changed files with 3 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue