Skip to content

bug: Password visibility toggle logic is inverted in signup form #75

Description

@Vaanshimadaan

Bug Description

There is a logic inversion in the password visibility toggle on the account creation form. When the eye icon is slashed/closed (indicating the password should be hidden), the plain text password is fully visible. Conversely, when the eye icon is open, the password characters are masked.

Steps to Reproduce

  1. Navigate to the "Create your account" (Signup) page.
  2. Type any characters into the Password input field.
  3. Observe the current toggle state:
    • Slashed eye icon shows the text bsbbsbs (visible).
    • Open eye icon masks the text.

Expected Behavior

  • When showPassword is false (slashed eye icon), the input type should be password (characters masked).
  • When showPassword is true (open eye icon), the input type should be text (characters visible in plain text).

Screenshots

Image

Environment

  • Repository: frontend (StackIt Signup View)

Possible Fix

In the password input field component, the icon rendering condition needs to be swapped to match the underlying state value:

// Current inverted logic setup needs to be updated to:
{showPassword ? <EyeOffIcon/> : <EyeIcon/>}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions