Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Two Factor Authentication for Vue Starter Kit #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pushpak1300 wants to merge 78 commits into main
base: main
Choose a base branch
Loading
from feat/two-factor-auth

Conversation

Copy link
Member

@pushpak1300 pushpak1300 commented Aug 19, 2025
edited
Loading

This MR adds Two-Factor Authentication (2FA) functionality to the Vue Starter Kit using Laravel Fortify's built-in support for 2FA

🔒 Backend Changes

We are now leveraging Fortify for handling two-factor authentication. Since Fortify provides additional security features out of the box, this MR also replaces our custom implementation of the password confirmation page with Fortify’s native confirm password functionality.

Previously: Custom password confirmation
Now: Native Fortify confirm-password implementation

🖥️ Frontend/UI Updates

The UI has been updated to handle all the two-factor settings based on Fortify's configuration. The following Fortify features are enabled:

Features::twoFactorAuthentication([
  'confirm' => true,
  'confirmPassword' => true,
  // 'window' => 0
]),

📹 Demo

Here is the video demo for this feature:

Co-authored-by: Tony Lea tnylea@gmail.com
Thanks to #120

balu-lt, im-aeo, SamuelMwangiW, and devinnived reacted with heart emoji
...nhance state management, and optimize TwoFactor UI components
...improve recovery codes visibility toggle, and standardize spacing
...s with Inertia assertions, and improve naming consistency
# Conflicts:
#	tests/Feature/Auth/AuthenticationTest.php
#	tests/Feature/Auth/PasswordResetTest.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@taylorotwell taylorotwell Awaiting requested review from taylorotwell

@joetannenbaum joetannenbaum Awaiting requested review from joetannenbaum

1 more reviewer

@laserhybiz laserhybiz laserhybiz left review comments

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /