Skip to content

Conversation

@Manik-Khajuria-5
Copy link
Contributor

@Manik-Khajuria-5 Manik-Khajuria-5 commented Dec 13, 2025

Issue number

Contributes to #4460


Description

This PR refactors the PasswordReset component by converting it from a legacy class-based React component into a modern functional component using React hooks.


Key Changes

  • Converted PasswordReset from a class-based component to a functional component
  • Replaced lifecycle methods with useEffect for handling success state updates
  • Simplified internal state management using useState
  • Removed deprecated patterns such as constructors and manual this bindings
  • Preserved existing password reset logic and integration with setInitialPassword
  • Maintained support for both username- and email-based authentication
  • Improved readability and consistency with modern Volto code style


@Manik-Khajuria-5 Manik-Khajuria-5 marked this pull request as ready for review December 13, 2025 10:36
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