Skip to content

Commit

Permalink
Obfuscate sensitive info in livesession (#4732)
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw authored Aug 23, 2023
1 parent 13837bc commit 8e7b514
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const EmailAndSeedStep = () => {
error={formState.errors.EmailAndSeedStep?.mnemonic?.message}
>
<TextArea
data-ls-disabled
rows={2}
placeholder="Wallet seed"
{...register(`${ForgotPasswordStep.EmailAndSeedStep}.mnemonic`)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ export const NewPasswordStep = () => {
<GapContainer>
<FormField label="New password" error={formState.errors.NewPasswordStep?.password?.message}>
<Input
data-ls-disabled
placeholder="Password"
{...register(`${ForgotPasswordStep.NewPasswordStep}.password`)}
{...hidePasswordProps}
/>
</FormField>
<FormField label="Repeat password" error={formState.errors.NewPasswordStep?.confirmPassword?.message}>
<Input
data-ls-disabled
placeholder="Confirm password"
{...register(`${ForgotPasswordStep.NewPasswordStep}.confirmPassword`)}
{...hideConfirmPasswordProps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const LogInModal = () => {
</FormField>
<FormField label="Password" error={errors.password?.message}>
<Input
data-ls-disabled
{...register('password')}
placeholder="Password"
{...hidePasswordProps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const SignUpPasswordStep: FC<SignUpPasswordStepProps> = ({
<StyledSignUpForm>
<FormField label="Password" error={errors.password?.message}>
<Input
data-ls-disabled
placeholder="Password"
{...register('password')}
{...hidePasswordProps}
Expand All @@ -87,6 +88,7 @@ export const SignUpPasswordStep: FC<SignUpPasswordStepProps> = ({
</FormField>
<FormField label="Repeat Password" error={errors.confirmPassword?.message}>
<Input
data-ls-disabled
placeholder="Repeat password"
{...register('confirmPassword')}
{...hideConfirmPasswordProps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const SignUpSeedStep: FC<SignUpSeedStepProps> = ({
>
<StyledSignUpForm>
<FormField label="Password recovery seed">
<StyledTextArea {...register('mnemonic')} disabled />
<StyledTextArea data-ls-disabled {...register('mnemonic')} disabled />
</FormField>
<StyledTextButton
variant="secondary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export const ChangePasswordDialog: FC<ChangePasswordDialogProps> = ({ onClose, s
error={verifyPasswordForm.formState.errors.oldPassword?.message}
>
<Input
data-ls-disabled
placeholder="Password"
{...verifyPasswordForm.register('oldPassword', {
validate: {
Expand All @@ -165,6 +166,7 @@ export const ChangePasswordDialog: FC<ChangePasswordDialogProps> = ({ onClose, s
<Wrapper>
<FormField label="New password" error={changePasswordForm.formState.errors.password?.message}>
<Input
data-ls-disabled
placeholder="New password"
{...changePasswordForm.register('password')}
{...hidePasswordProps}
Expand All @@ -173,6 +175,7 @@ export const ChangePasswordDialog: FC<ChangePasswordDialogProps> = ({ onClose, s
</FormField>
<FormField label="Repeat Password" error={changePasswordForm.formState.errors.confirmPassword?.message}>
<Input
data-ls-disabled
placeholder="Repeat password"
{...changePasswordForm.register('confirmPassword')}
{...hideConfirmPasswordProps}
Expand Down

0 comments on commit 8e7b514

Please sign in to comment.