Skip to content

Commit

Permalink
Merge pull request #21 from thedevdojo/updateUerModel
Browse files Browse the repository at this point in the history
adding default redirect login to be homepage
  • Loading branch information
tnylea authored May 24, 2024
2 parents 904f24e + f6b7cf5 commit c8f10a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/devdojo/auth/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
->set('name', 'John Doe')
->call('register')
->assertHasNoErrors()
->assertRedirect('/dashboard');
->assertRedirect('/');

$this->assertTrue(Auth::check());
$this->assertEquals('[email protected]', Auth::user()->email);
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/TwoFactorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
->set('password', 'password123')
->call('authenticate')
->assertHasNoErrors()
->assertRedirect('dashboard');
->assertRedirect('/');

$this->assertTrue(! Session::has('login.id'));
});
Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit c8f10a2

Please sign in to comment.