diff --git a/config/devdojo/auth/settings.php b/config/devdojo/auth/settings.php index 8467c3e..47fc6cd 100644 --- a/config/devdojo/auth/settings.php +++ b/config/devdojo/auth/settings.php @@ -4,7 +4,7 @@ * These are some default authentication settings */ return [ - 'redirect_after_auth' => '/dashboard', + 'redirect_after_auth' => '/', 'registration_show_password_same_screen' => true, 'registration_include_name_field' => false, 'registration_require_email_verification' => false, diff --git a/tests/Feature/AuthenticationTest.php b/tests/Feature/AuthenticationTest.php index 194384e..951eb84 100644 --- a/tests/Feature/AuthenticationTest.php +++ b/tests/Feature/AuthenticationTest.php @@ -28,7 +28,7 @@ ->set('name', 'John Doe') ->call('register') ->assertHasNoErrors() - ->assertRedirect('/dashboard'); + ->assertRedirect('/'); $this->assertTrue(Auth::check()); $this->assertEquals('user@example.com', Auth::user()->email); diff --git a/tests/Feature/TwoFactorTest.php b/tests/Feature/TwoFactorTest.php index 898b743..a68b098 100644 --- a/tests/Feature/TwoFactorTest.php +++ b/tests/Feature/TwoFactorTest.php @@ -28,7 +28,7 @@ ->set('password', 'password123') ->call('authenticate') ->assertHasNoErrors() - ->assertRedirect('dashboard'); + ->assertRedirect('/'); $this->assertTrue(! Session::has('login.id')); }); @@ -58,7 +58,7 @@ ->set('password', 'password123') ->call('authenticate') ->assertHasNoErrors() - ->assertRedirect('dashboard'); + ->assertRedirect('/'); }); it('user cannot view two factor challenge page logging in if it\'s disabled', function () {