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. * Show the user's security settings page.
*/ */
public function edit(TwoFactorAuthenticationRequest $request): Response|RedirectResponse public function edit(TwoFactorAuthenticationRequest $request): Response
{ {
$user = $request->user(); $user = $request->user();
if ($user->must_change_password_on_next_login) {
return to_route('password.force-change.edit');
}
$props = [ $props = [
'canManageTwoFactor' => Features::canManageTwoFactorAuthentication(), 'canManageTwoFactor' => Features::canManageTwoFactorAuthentication(),
'mustChangePassword' => (bool) $user->must_change_password_on_next_login,
'status' => session('status'),
]; ];
if (Features::canManageTwoFactorAuthentication()) { if (Features::canManageTwoFactorAuthentication()) {
@@ -23,10 +23,7 @@ class RequirePasswordChange
if ($request->routeIs([ if ($request->routeIs([
'logout', 'logout',
'password.confirm',
'password.confirm.*',
'password.force-change.edit', 'password.force-change.edit',
'security.edit',
'user-password.update', 'user-password.update',
])) { ])) {
return $next($request); return $next($request);
-1
View File
@@ -144,7 +144,6 @@ return [
*/ */
'features' => [ 'features' => [
Features::registration(),
Features::resetPasswords(), Features::resetPasswords(),
Features::emailVerification(), Features::emailVerification(),
Features::twoFactorAuthentication([ Features::twoFactorAuthentication([