From d6f435ada00873bafc2d7030e0e08e596dcb3207 Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Sat, 11 Jul 2026 16:16:42 +0200 Subject: [PATCH] fix(lab-seeds): align login and QR approve views with ac-be-auth Co-authored-by: Cursor --- .../lab-seeds/backend/views/login.php | 7 ++++-- .../backend/views/two_factor_approve.php | 25 ++++++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/sim/cluster0/lab-seeds/backend/views/login.php b/sim/cluster0/lab-seeds/backend/views/login.php index ddc7932..682afba 100644 --- a/sim/cluster0/lab-seeds/backend/views/login.php +++ b/sim/cluster0/lab-seeds/backend/views/login.php @@ -12,6 +12,7 @@ */ $bp = Auth::basePath(); $auth = Auth::authUrl(); +$loginRedirect = $loginRedirect ?? ''; ?> @@ -42,6 +43,9 @@ $auth = Auth::authUrl(); diff --git a/sim/cluster0/lab-seeds/backend/views/two_factor_approve.php b/sim/cluster0/lab-seeds/backend/views/two_factor_approve.php index 2471c9d..e0bfc22 100644 --- a/sim/cluster0/lab-seeds/backend/views/two_factor_approve.php +++ b/sim/cluster0/lab-seeds/backend/views/two_factor_approve.php @@ -3,6 +3,7 @@ $bp = Auth::basePath(); $auth = Auth::authUrl(); $user = Auth::user(); $rawToken = trim($_GET['token'] ?? $_POST['token'] ?? ''); +$needsTotp = !$user && $approvalInfo && empty($approveResult); ?> @@ -16,6 +17,8 @@ $rawToken = trim($_GET['token'] ?? $_POST['token'] ?? ''); if (t === 'light' || t === 'dark') document.documentElement.setAttribute('data-theme', t); })(); + + @@ -36,7 +39,7 @@ $rawToken = trim($_GET['token'] ?? $_POST['token'] ?? '');

Your other device should now be logged in automatically.

-

This approval link has expired or is invalid.

+

Invalid or expired code. Open the QR link again from your desktop, or enter the current 6-digit authenticator code.

Back to hub @@ -46,13 +49,27 @@ $rawToken = trim($_GET['token'] ?? $_POST['token'] ?? '');

Approve sign-in on another device?

- Tap Approve to log in the browser that showed you this QR code.
+ + Tap Approve to log in the browser that showed you this QR code.
+ + Enter the 6-digit code from your authenticator app to approve the other device.
+ This link expires in a few minutes.

-
+ - + + + +
+ +

+ Already signed in on this phone? + Sign in first +

+

Cancel