Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Update user's default password 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamara committed Aug 4, 2023
1 parent a33e9b0 commit 60fd84e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/Auth/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function test_users_can_authenticate_using_the_login_screen(): void

$response = $this->post('/login', [
'email' => $user->email,
'password' => 'password',
'password' => 'secret',
]);

$this->assertAuthenticated();
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Auth/PasswordConfirmationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function test_password_can_be_confirmed(): void
$user = User::factory()->create();

$response = $this->actingAs($user)->post('/confirm-password', [
'password' => 'password',
'password' => 'secret',
]);

$response->assertRedirect();
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Auth/PasswordResetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function test_password_can_be_reset_with_valid_token(): void
$response = $this->post('/reset-password', [
'token' => $notification->token,
'email' => $user->email,
'password' => 'password',
'password_confirmation' => 'password',
'password' => 'secret',
'password_confirmation' => 'secret',
]);

$response->assertSessionHasNoErrors();
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Auth/PasswordUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function test_password_can_be_updated(): void
->actingAs($user)
->from('/profile')
->put('/password', [
'current_password' => 'password',
'current_password' => 'secret',
'password' => 'new-password',
'password_confirmation' => 'new-password',
]);
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Auth/RegistrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function test_new_users_can_register(): void
'first_name' => 'Test User',
'last_name' => 'Test User',
'email' => 'test@example.com',
'password' => 'password',
'password_confirmation' => 'password',
'password' => 'secret',
'password_confirmation' => 'secret',
]);

$this->assertAuthenticated();
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/ProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function test_user_can_delete_their_account(): void
$response = $this
->actingAs($user)
->delete('/profile', [
'password' => 'password',
'password' => 'secret',
]);

$response
Expand Down

0 comments on commit 60fd84e

Please sign in to comment.