Refine forced password change flow
linter / quality (pull_request) Successful in 1m19s
tests / ci (8.4) (pull_request) Successful in 1m31s

This commit is contained in:
2026-05-22 18:57:10 +00:00
parent d13e919310
commit 5bb6e57db4
6 changed files with 204 additions and 6 deletions
+3 -2
View File
@@ -33,7 +33,7 @@ class AuthenticationTest extends TestCase
$response->assertRedirect(route('dashboard', absolute: false));
}
public function test_users_who_must_change_their_password_are_redirected_to_security_settings_after_login()
public function test_users_who_must_change_their_password_are_redirected_to_the_dedicated_force_change_page_after_login()
{
$user = User::factory()->create([
'must_change_password_on_next_login' => true,
@@ -46,7 +46,8 @@ class AuthenticationTest extends TestCase
$this->assertAuthenticated();
$response->assertInertia(fn (Assert $page) => $page
->component('auth/ConfirmPassword'),
->component('auth/ForcePasswordChange')
->where('status', 'You must change your password before continuing.'),
);
}