fixes
linter / quality (push) Successful in 1m25s
tests / ci (8.4) (push) Failing after 1m19s

This commit is contained in:
2026-05-23 01:05:01 +02:00
parent 653036dead
commit adaf3d2b32
3 changed files with 1 additions and 11 deletions
@@ -29,18 +29,12 @@ class SecurityController extends Controller implements HasMiddleware
/**
* Show the user's security settings page.
*/
public function edit(TwoFactorAuthenticationRequest $request): Response|RedirectResponse
public function edit(TwoFactorAuthenticationRequest $request): Response
{
$user = $request->user();
if ($user->must_change_password_on_next_login) {
return to_route('password.force-change.edit');
}
$props = [
'canManageTwoFactor' => Features::canManageTwoFactorAuthentication(),
'mustChangePassword' => (bool) $user->must_change_password_on_next_login,
'status' => session('status'),
];
if (Features::canManageTwoFactorAuthentication()) {