laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.97k stars 822 forks source link

Two Factor Auth published view not working with fortify prefixed routes #525

Closed Caffe1neAdd1ct closed 3 years ago

Caffe1neAdd1ct commented 3 years ago

Description:

Changing the fortify prefix allows prefixing the entire login pipeline routes from /login to /admin/login however currently breaks the two factor authentication process due to the published Jetstream Livewire view for 2FA containing a manual form url:

<form method="POST" action="/two-factor-challenge">
                @csrf

Changing to

<form method="POST" action="{{ route('two-factor.login') }}">
                @csrf

Fixes for me.

Steps To Reproduce:

driesvints commented 3 years ago

I've sent in a PR: https://github.com/laravel/jetstream/pull/528

Caffe1neAdd1ct commented 3 years ago

@driesvints Thanks very much for raising the pull request!