From 783244ee82793a4a5afb2f89832158f5070bb9ac Mon Sep 17 00:00:00 2001 From: Roly Gutierrez Date: Wed, 2 Sep 2026 17:19:01 -0400 Subject: [PATCH] fix(FOUR-28543): add log in as another user link on 2FA screens Add a "Log in as another user" link on the two-step authentication views so users stuck on /2fa can clear the previous session without clearing cookies or using a private browser window. - otp.blade.php: show link on the right of "Send Again" (logout route) - auth_app_qr.blade.php: show the same link on the authenticator setup view https://processmaker.atlassian.net/browse/FOUR-28543 --- resources/views/auth/2fa/auth_app_qr.blade.php | 7 +++++++ resources/views/auth/2fa/otp.blade.php | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/resources/views/auth/2fa/auth_app_qr.blade.php b/resources/views/auth/2fa/auth_app_qr.blade.php index cd370d4557..7f8c224004 100644 --- a/resources/views/auth/2fa/auth_app_qr.blade.php +++ b/resources/views/auth/2fa/auth_app_qr.blade.php @@ -52,6 +52,13 @@ QR +
+ +
diff --git a/resources/views/auth/2fa/otp.blade.php b/resources/views/auth/2fa/otp.blade.php index b08295a3c0..ee01b08ef9 100644 --- a/resources/views/auth/2fa/otp.blade.php +++ b/resources/views/auth/2fa/otp.blade.php @@ -69,14 +69,18 @@ class="form-control{{ $errors->has('code') ? ' is-invalid' : '' }}" {{ __('Send Again') }}
- @if (in_array(\ProcessMaker\TwoFactorAuthentication::AUTH_APP, - config('password-policies.2fa_method', []))) -
+
+ @if (in_array(\ProcessMaker\TwoFactorAuthentication::AUTH_APP, + config('password-policies.2fa_method', []))) {{ __('Authenticator app') }} +
+ @endif + + {{ __('Log in as another user') }} +
- @endif