-
Notifications
You must be signed in to change notification settings - Fork 214
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
+1,252
−1,500
Conversation
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
...etter reusability and cleanup (#148)
...e component and simplify implementation logic (#149)
...ts and improve conditional rendering
...imize TwoFactor UI components
...d improve UI logic consistency
...nhance state management, and optimize TwoFactor UI components
...improve recovery codes visibility toggle, and standardize spacing
...ty in session handling
..., and standardize naming conventions
...s with Inertia assertions, and improve naming consistency
...refine recovery codes handling
...refine recovery codes handling
...actor component to simplify structure
...to simplify structure
database/migrations/2025_08_14_170933_add_two_factor_columns_to_users_table.php
Show resolved
Hide resolved
...ks, improved UI spacing, and expanded test coverage
...ery codes handling, and standardize UI consistency
... simplify PinInput structure
...oFactor logic, and enhance PinInput handling
app/Http/Controllers/Settings/TwoFactorAuthenticationController.php
Outdated
Show resolved
Hide resolved
database/migrations/2025_08_14_170933_add_two_factor_columns_to_users_table.php
Show resolved
Hide resolved
# Conflicts: # routes/auth.php # tests/Feature/Auth/AuthenticationTest.php # tests/Feature/Auth/PasswordConfirmationTest.php
@pushpak1300
pushpak1300
force-pushed
the
feat/two-factor-auth
branch
from
September 1, 2025 14:23
adb741f
to
048876e
Compare
# Conflicts: # tests/Feature/Auth/AuthenticationTest.php # tests/Feature/Auth/PasswordResetTest.php
joetannenbaum
joetannenbaum
requested changes
Sep 5, 2025
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
🖥️ 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:
📹 Demo
Here is the video demo for this feature:
Two Factor with Confirmation setting enabled.
https://www.loom.com/share/89132b7009844daab519008fa8100952?sid=3492a032-5944-47cf-9286-9ed2879c4808
Two Factor without Confirmation setting enabled.
https://www.loom.com/share/a68731fc85ae4f52831ff95a63d4004f?sid=37715df6-fa21-459d-b88b-c52dd4e638ea
Two Factor without Password Confirmation
https://www.loom.com/share/4b808f14e80043e9ab55258b08c7d2b6?sid=35bfdc88-4c80-45f9-995a-fbca972bccad
Co-authored-by: Tony Lea tnylea@gmail.com
Thanks to #120