Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/spam-hint-on-otp-form.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'ePDS': patch
---

Sign-in code page hints to check spam folder when the email doesn't arrive.

**Affects:** End users

**End users:** the page now shows a small "If you don't see the email, check your spam folder." note below the code boxes. If you typo'd your email or the message landed in spam, you used to wait and wait and then get frustrated; the hint surfaces the most common reason early so you can either check spam or click "Use different email" sooner.
6 changes: 5 additions & 1 deletion packages/auth-service/src/routes/login-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export function renderLoginPage(opts: {
${renderFaviconTag(opts.customFaviconUrl, opts.customFaviconUrlDark)}
<title>Sign in to ${escapeHtml(appName)}</title>
<style>
:root { --muted-foreground: #999; --input-bg: #ffffff; --input-border: #e5e5e5; --page-bg: #E8E8E8; --card-bg: #F8F8F8; --card-border: #E5E5E5; --btn-secondary-border: #e5e5e5; --focus-border: ${brandColor}; }
:root { --muted-foreground: #6b6b6b; --input-bg: #ffffff; --input-border: #e5e5e5; --page-bg: #E8E8E8; --card-bg: #F8F8F8; --card-border: #E5E5E5; --btn-secondary-border: #e5e5e5; --focus-border: ${brandColor}; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--page-bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; color: #1A130F; }
.page-wrap { display: flex; flex-direction: column; align-items: stretch; max-width: 497px; width: 100%; }
Expand All @@ -614,6 +614,7 @@ export function renderLoginPage(opts: {
.otp-box::placeholder { color: #d4d4d4; }
.otp-box:focus { border-color: var(--focus-border); }
.otp-actions { display: flex; gap: 32px; justify-content: center; margin-top: 12px; }
.otp-spam-hint { color: var(--muted-foreground); font-size: 13px; text-align: center; margin: 8px 0 16px; }
Comment thread
coderabbitai[bot] marked this conversation as resolved.
.btn-primary { width: 100%; padding: 15px; background: ${brandColor}; color: white; border: none; border-radius: 9999px; font-size: 15px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
Expand Down Expand Up @@ -696,6 +697,9 @@ export function renderLoginPage(opts: {
</div>
<button type="submit" class="btn-primary">Verify</button>
</form>
<p class="otp-spam-hint" id="otp-spam-hint">
If you don't see the email, check your spam folder.
</p>
<div class="otp-actions">
<button type="button" class="btn-secondary" id="btn-resend">Resend code</button>
<button type="button" class="btn-secondary" id="btn-back">Use different email</button>
Expand Down
Loading