- Changed API endpoint paths in multiple JavaScript files and HTML templates from absolute to relative URLs for consistency and improved portability.
- Updated fetch calls in hunt_manager.js, logs.js, new-main.js, login.html, setup.html, user.html, and home_section.html to use './api/' prefix.
- Ensured that all relevant API interactions are now using the updated relative paths.
- Implemented a new function to generate two-factor authentication (2FA) setup, including QR code generation and error handling.
- Triggered 2FA generation automatically when entering the setup step for enhanced user experience.
- Removed redundant 2FA setup code from the account creation process to streamline the flow.
- Added functionality to save and restore setup progress using a new API and database methods.
- Enhanced the setup process in the frontend to track user progress through various steps, including account creation and two-factor authentication.
- Introduced error handling for setup progress operations and improved logging for better debugging.
- Implemented a clear setup progress feature to reset the state upon completion.
- Updated the recovery key generation API to support a new setup mode, allowing users to bypass password verification during initial setup.
- Modified the frontend to include a setup mode flag in the recovery key generation request, enhancing the user experience during account setup.
- Improved logging to indicate whether the recovery key was generated in setup mode.
- Added an error message display for the two-factor authentication section to improve user feedback during verification.
- Cleared the verification code input field on page load and when entering the two-factor setup step for better user experience.
- Updated the verification code submission logic to handle both HTTP and application errors more effectively.
- Refined the authentication request handling to include the two-factor authentication endpoint in the skip authentication logic.
- Simplified the wording in the account recovery section to enhance clarity and user understanding.
- Maintained the overall structure and styling of the setup page while improving the messaging.
- Removed redundant messaging about generating a recovery key to streamline the user interface.
- Enhanced the styling of the recovery key display section for better visual appeal, including updated colors and shadows.
- Modified countdown timer messaging to emphasize the importance of saving the recovery key.
- Removed the recovery key skip button to streamline the setup process.
- Enhanced the confirmation section with improved styling and messaging for better user experience.
- Updated button styles for consistency and visual appeal.
- Cleaned up related JavaScript event listeners to reflect the removal of the skip functionality.
- Updated the recovery key generation process to include a countdown timer and confirmation section for improved user experience.
- Modified the display logic for the recovery key and added functionality to auto-generate the key when entering the setup step.
- Improved button interactions for copying the recovery key and confirming its copying status.
- Refined the overall layout and messaging to ensure clarity and security in handling recovery keys.
- Updated setup steps to include a new recovery key generation step, improving account security.
- Added UI components for generating, displaying, and copying the recovery key.
- Implemented functionality to handle recovery key generation and status updates.
- Adjusted navigation logic to accommodate the new recovery key step in the setup flow.
- Added a new container for the secret key display and a copy button to facilitate easy copying of the generated secret key.
- Implemented a JavaScript function to handle copying the secret key to the clipboard, including fallback for older browsers.
- Updated CSS styles for better layout and spacing of the secret key and copy button.