Skip to content

Conversation

pushpak1300
Copy link
Member

@pushpak1300 pushpak1300 commented Sep 3, 2025

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

🔒 Backend Changes

We are now leveraging Fortify for handling two-factor authentication.

🖥️ 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

https://www.loom.com/share/e12c8d8c806b411d90ca277bb5d56dea

Co-authored-by: Tony Lea [email protected]
Thanks to #84

Copy link
Contributor

@joetannenbaum joetannenbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

I tried to extract the Input OTP component's JS out to a script tag but it just caused more problems than it was worth. Otherwise, just some formatting nits I fixed and let's try to use Livewire's reset for resetting properties instead of manually setting them back to their initial values.

@taylorotwell taylorotwell merged commit b6a8be2 into main Sep 23, 2025
3 checks passed
@taylorotwell taylorotwell deleted the feat/two-factor-auth branch September 23, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants