ansopedia / creator-studio

Ansopedia Creator Studio (ACS) is an open-source content management system (CMS) designed to power Ansopedia, a learning platform. It provides a user-friendly interface for creating, editing, and managing various content types like posts, comments, questions, quizzes, and assets (images, files).
MIT License
1 stars 2 forks source link

FE - Add Show/Hide Password Functionality in Login Form #7

Closed sanjaysah101 closed 4 days ago

sanjaysah101 commented 6 days ago

Description

Could you implement a show/hide password in the login form to enhance the user experience? The feature should allow users to toggle the visibility of their password input.

Tasks

  1. Create a Custom Password Component:

    • Develop a Password component that handles the password input field and includes logic to toggle visibility.
    • The component should accept common input props like name, value, onChange, placeholder, and other relevant attributes.
    • Add a button or icon within the component that toggles between showing and hiding the password.
    • Use state management to track whether the password is visible or hidden.
  2. Integrate the Password Component into the Login Form:

    • Replace the password input field in the login form with the newly created Password component.
    • Ensure the component integrates seamlessly with the form's state and validation logic.

Acceptance Criteria

Additional Context

This feature will improve usability by allowing users to verify their password input if needed, especially on mobile devices where typing errors are more common.

IngaleChinmay04 commented 6 days ago

I am not yet familiar with TypeScript and Next.js, but I am eager to take on the challenge of implementing the show/hide password feature. Could you please assign this task to me?

Badra00 commented 6 days ago

Hello I created a PR to add this feature.