From 69ced653cf9be9cc6d436a60759690d604e2bc22 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Sun, 18 Oct 2026 23:35:21 +0000 Subject: [PATCH] fix(auth): sign-up copy says confirm your email, then sign in with your password (planning#2291) --- .../feature-packs/auth/auth-entry-panel.tsx | 2 +- .../auth/auth-feature-pack.test.tsx | 21 +++++++++++++++++++ packages/sheets/src/auth/ui/register-form.tsx | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/apps/blocks/src/blocks/feature-packs/auth/auth-entry-panel.tsx b/apps/blocks/src/blocks/feature-packs/auth/auth-entry-panel.tsx index ed69ae06..e4f942e6 100644 --- a/apps/blocks/src/blocks/feature-packs/auth/auth-entry-panel.tsx +++ b/apps/blocks/src/blocks/feature-packs/auth/auth-entry-panel.tsx @@ -189,7 +189,7 @@ export function AuthEntryPanel({ password, rememberMe }); - setFeedback('Check your email for a link to confirm your address and sign in.'); + setFeedback('Check your email to confirm your address, then sign in with your password.'); } else if (mode === 'recover-password') { if (!actions?.recoverPassword) return; await actions.recoverPassword({ email: email.trim() }); diff --git a/apps/blocks/src/blocks/feature-packs/auth/auth-feature-pack.test.tsx b/apps/blocks/src/blocks/feature-packs/auth/auth-feature-pack.test.tsx index 540e8007..a660586b 100644 --- a/apps/blocks/src/blocks/feature-packs/auth/auth-feature-pack.test.tsx +++ b/apps/blocks/src/blocks/feature-packs/auth/auth-feature-pack.test.tsx @@ -79,6 +79,27 @@ describe('authentication feature-pack flows', () => { expect(screen.getByText('Password must be at least 8 characters.')).toBeInTheDocument(); }); + it('tells a new account to confirm its email, then sign in with its password', async () => { + const user = userEvent.setup(); + const signUp = vi.fn().mockResolvedValue(undefined); + const { container } = render( + + ); + + await user.type(screen.getByRole('textbox', { name: 'Email address' }), 'ada@example.com'); + await user.type(container.querySelector('input[name="password"]')!, 'correct horse'); + await user.click(screen.getByRole('button', { name: 'Create account' })); + + expect(await screen.findByRole('status')).toHaveTextContent( + 'Check your email to confirm your address, then sign in with your password.' + ); + }); + it('requires named confirmation and password step-up before requesting deletion', async () => { const user = userEvent.setup(); const requestAccountDeletion = vi.fn().mockResolvedValue(undefined); diff --git a/packages/sheets/src/auth/ui/register-form.tsx b/packages/sheets/src/auth/ui/register-form.tsx index 4cdd2f03..989c1714 100644 --- a/packages/sheets/src/auth/ui/register-form.tsx +++ b/packages/sheets/src/auth/ui/register-form.tsx @@ -56,7 +56,7 @@ export function SheetsRegisterForm({ onRegister, onShowLogin, defaultEmail = ''

Check your email

- We've sent a link to confirm your address and sign in. + We've sent a link to confirm your address. Open it, then sign in with your password.