Fix the existing Forgot Password / Password Reset feature on my forex trading website.
Generated Prompt
## APPLICATION OVERVIEW The project involves fixing the existing **Forgot Password / Password Reset** feature on a forex trading web application. The goal is to ensure that users can securely reset their passwords while maintaining the existing authentication system and UI design. ## CORE FEATURES 1. **Forgot Password Functionality**: Users can initiate the password reset process by clicking the "Forgot Password" link on the login page. 2. **Email Verification**: The system verifies the user's email and sends a secure password-reset email containing a reset link. 3. **Password Reset Link**: The reset link directs users to a dedicated password-reset page where they can set a new password. 4. **Token Handling**: The system manages the validity of reset tokens, ensuring they expire after use or after a set time frame. 5. **Error Handling**: Clear and professional error messages guide users in case of invalid or expired links without exposing sensitive information. 6. **Loading States**: The application provides feedback during the password reset process to enhance user experience. ## DESIGN SPECIFICATIONS - **Visual Style**: minimalist - Clean, simple design with plenty of white space, minimal color palette, and focus on typography - **Color Mode**: Light theme with dark text on light backgrounds - **Primary Color**: #1978E5 (accent for buttons, links, highlights) - **Typography**: Use Inter from Google Fonts for headings, Inter for body text and UI elements - **Border Radius**: 8px (moderately rounded) for buttons, cards, and inputs - **Layout**: The layout includes a straightforward flow from the login page to the password reset process, maintaining current elements and styles while focusing on functionality. ## TECHNICAL REQUIREMENTS - **Framework**: React with TypeScript - **Styling**: Tailwind CSS - **UI Components**: shadcn/ui - **State Management**: React Context API or any preferred state management library ## IMPLEMENTATION STEPS 1. **Inspect Current System**: Review the existing authentication provider, user storage, and current implementation of the Forgot Password feature. 2. **Identify Issues**: Determine the root causes of the broken functionality, such as email configuration or incorrect link generation. 3. **Utilize Firebase**: If Firebase Authentication is in use, implement its password-reset mechanism without duplicating authentication logic. 4. **Email Setup**: Ensure the email configuration is connected to the password-reset email mechanism. 5. **Reset Link Creation**: Generate a reset link that points to the correct production site, handling all edge cases (valid/expired links, error messages). 6. **User Interface Adjustments**: Update the UI to include loading states and disable the submit button during requests to prevent multiple submissions. 7. **Testing**: Thoroughly test the entire password reset flow, including successful resets and handling of invalid links. ## USER EXPERIENCE Users will interact with a simple and straightforward flow: clicking "Forgot Password", entering their email, receiving a reset email, and successfully changing their password. The interface will be user-friendly, providing clear instructions and feedback throughout the process, ensuring a seamless experience while maintaining the existing website design. This implementation will enhance user security and satisfaction without altering the overall structure of the application.
Loved by thousands of makers from
From early prototypes to real products, they started here.







































Generate optimized prompts for your vibe coding projects
Generate prompt
Enter a brief description of the app you want to build and get an optimized prompt
Review and use your prompt
Review (and edit if necessary) the generated prompt, then copy it or open it directly in your chosen platform
Get inspired with new ideas
Get AI-generated suggestions to expand your product with features that will surprise your users
Frequently Asked Questions
Everything you need to know about creating better prompts for your Lovable projects
Still have questions?
Can't find what you're looking for? We're here to help!
