Skip to content

Commit d965439

Browse files
committed
FIx Tests
1 parent 0357084 commit d965439

File tree

3 files changed

+7
-217
lines changed

3 files changed

+7
-217
lines changed

app/Providers/FortifyServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function register(): void
2424
*/
2525
public function boot(): void
2626
{
27-
Fortify::ignoreRoutes();
2827
Fortify::twoFactorChallengeView(fn () => view('livewire.auth.two-factor-challenge'));
2928

3029
RateLimiter::for('two-factor', function (Request $request) {

routes/web.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313
->name('dashboard');
1414

1515
Route::middleware(['auth'])->group(function () {
16-
Route::redirect('settings', 'settings/profile')->middleware(['password.confirm']);
16+
Route::redirect('settings', 'settings/profile');
1717

1818
Volt::route('settings/profile', 'settings.profile')->name('settings.profile');
1919
Volt::route('settings/password', 'settings.password')->name('settings.password');
2020
Volt::route('settings/appearance', 'settings.appearance')->name('settings.appearance');
2121

22+
$twoFactorMiddleware = Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword')
23+
? ['password.confirm']
24+
: [];
25+
2226
Volt::route('settings/two-factor', 'settings.two-factor')
27+
->middleware($twoFactorMiddleware)
2328
->name('settings.two-factor');
2429
});
2530

26-
require __DIR__.'/auth.php';
31+
require __DIR__ . '/auth.php';

tests/Feature/Auth/TwoFactorAuthenticationTest.php

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)