Skip to content

Conversation

@dishakemble260
Copy link

@dishakemble260 dishakemble260 commented Mar 2, 2024

Description

  • Updated the SignupForm component by implementing a feature that prevents users from copying and pasting text into the
    Confirm Password field. This ensures users are actively typing their passwords rather than pasting them.
  • To achieve this functionality, a new event handler function 'handlePasteConfirmPassword' has been introduced. This function
    is attached to the Confirm Password TextField component's 'onPaste' event, where it intercepts any paste attempts and
    prevents the default paste action using ' event.preventDefault() '.

Motivation and Context

This feature enhancement enhances the security posture of the application and promotes user-friendly password management practices, contributing positively to the user experience and overall security of the application.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant