Skip to content

Commit 93fd11e

Browse files
#RI-4481 - change hide symbol
1 parent cacc704 commit 93fd11e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SECURITY_FIELD = '************'
1+
export const SECURITY_FIELD = '••••••••••••'

redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceForm/InstanceForm.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,9 +1153,9 @@ describe('InstanceForm', () => {
11531153
/>
11541154
)
11551155

1156-
expect(screen.getByTestId('password')).toHaveAttribute('value', '************')
1156+
expect(screen.getByTestId('password')).toHaveAttribute('value', '••••••••••••')
11571157
expect(screen.getByTestId('password')).toHaveAttribute('type', 'password')
1158-
expect(screen.getByTestId('sshPassphrase')).toHaveAttribute('value', '************')
1158+
expect(screen.getByTestId('sshPassphrase')).toHaveAttribute('value', '••••••••••••')
11591159
expect(screen.getByTestId('sshPassphrase')).toHaveAttribute('type', 'password')
11601160

11611161
fireEvent.focus(screen.getByTestId('password'))

redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceForm/form-components/SSHDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const SSHDetails = (props: Props) => {
205205
className="passwordField"
206206
maxLength={50_000}
207207
placeholder="Enter SSH Private Key in PEM format"
208-
value={formik.values.sshPrivateKey === true ? SECURITY_FIELD : formik?.values?.sshPrivateKey?.replace(/./g, '*') ?? ''}
208+
value={formik.values.sshPrivateKey === true ? SECURITY_FIELD : formik?.values?.sshPrivateKey?.replace(/./g, '') ?? ''}
209209
onChange={formik.handleChange}
210210
onFocus={() => {
211211
if (formik.values.sshPrivateKey === true) {

0 commit comments

Comments
 (0)