feat: Build Two-Factor Authentication UI - #293
Open
MooreTheAnalyst wants to merge 2 commits into
Open
Conversation
- Create TwoFactorSetup component for enabling/disabling 2FA in settings - Create TwoFactorLogin component for entering 2FA code during login - Add 2FA validation schema for 6-digit codes - Add twoFactorApi service with setup, verify, disable, and status endpoints - Update dashboard settings page to include 2FA toggle and management - Display QR code for scanner after initiating setup - Show 6-digit code verification input - Generate and display backup codes after successful verification - Implement backup code download and copy functionality - Add ability to disable 2FA with code confirmation via prompt - Add TwoFactorLogin step for login flow (template for integration) - Support for both authenticator and backup codes in login Features: - Multi-step 2FA setup flow (QR scan -> code verify -> backup codes) - Automatic code formatting (numeric only, max 6 digits) - Inline validation with error messages - Toast notifications for success/error states - Download backup codes as text file - Copy backup codes to clipboard - Hide/show backup codes toggle - Status indicator (Enabled/Disabled) in settings - Responsive design for mobile and desktop API Endpoints: - POST /2fa/setup - Initiate 2FA setup - POST /2fa/verify - Verify code and enable 2FA - POST /2fa/disable - Disable 2FA with verification - GET /2fa/status - Check if 2FA is enabled Closes Hamplard-Hub#160
|
@MooreTheAnalyst Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Features
API Endpoints
UI Components
TwoFactorSetup- Full enable/disable flow in settingsTwoFactorLogin- Code entry screen for login flowCloses #160