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 ed69ae0..e4f942e 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 540e800..a660586 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 4cdd2f0..989c171 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.