Skip to content

Google Accounts: link the two-step guide in Reset + 2FA copy text - #1794

Merged
peterdrier merged 2 commits into
mainfrom
claude/wonderful-thompson-nan2e0
Sep 22, 2026
Merged

peterdrier merged 2 commits into
mainfrom
claude/wonderful-thompson-nan2e0

Conversation

@peterdrier

Copy link
Copy Markdown
Owner

What

The one-shot recovery credentials shown after Reset + 2FA on /Google/Accounts now end with a short blurb and an absolute link to /Guide/TwoStepVerification, so the copy-to-clipboard text is a complete message to paste to the human. Password-only resets are unchanged.

Why

Peter does this reset often and was writing the "now set up 2FA properly" instructions by hand each time.

Existing surface checked

No new durable surface. The URL is built with Url.Action in the view, matching the absolute-link pattern used in the Events and Store controllers. The guide page is AllowAnonymous, so the link works for a locked-out human.

UI changes / screenshots

Clipboard text after Reset + 2FA becomes:

pw: <temp password>
2fa: <backup code>

The 2fa code is a one-time backup code: use it at the verification step, then set up two-step verification properly so you don't get locked out again. How-to: https://<host>/Guide/TwoStepVerification

The <pre> in the modal now wraps so the long line stays readable.

Checklist

  • Section labeled — GoogleIntegration.
  • Targeting main on peterdrier/Humans (the QA fork). No direct commits to main.
  • Branched off origin/main, not upstream/main.
  • Issue refs are qualified when crossing repo boundaries.
  • EF migrations none.
  • NuGet packages updated? no.
  • New project rule? no.
  • Reuse-first checked — one view edit, no new surface.
  • Build + test pass locally: section build and tests/Humans.GoogleIntegration.Tests (311 passed). Admin-only page, so no new localization keys per memory/code/localization-admin-exempt.md.
  • Nav coverage no new page.
  • No magic strings — the guide stem matches GuideFiles' existing "TwoStepVerification" entry.
  • Dates/times via NodaTime n/a.

Reviewer notes

Wording of the blurb is a first draft; easy to tweak in the view.

🤖 Generated with Claude Code

https://claude.ai/code/session_018grYTQkKyEGXcPLxqQKnwF


Generated by Claude Code

The one-shot recovery credentials for Reset + 2FA now end with a short
blurb and an absolute link to /Guide/TwoStepVerification, so the admin
can paste one message instead of writing the setup instructions by hand
each time. Password-only resets are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018grYTQkKyEGXcPLxqQKnwF
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-22T15:24:20.583859Z b9854b6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Sep 22, 2026

Copy link
Copy Markdown

Reviewed commit b9854b6 — no issues found.

@github-actions

github-actions Bot commented Sep 22, 2026

Copy link
Copy Markdown

PR Surface Report

Compared 001653fb...c3a80994. Scored with reforge 0.29.0.

Summary: 2 changed file(s) | EF migrations: 0 added file(s), max 0/1 per context

Reforge Surface Score

metric base head delta
total 20486 20486 0
surface 16872 16872 0
internal complexity 3614 3614 0

Section Deltas

No section score changes.

Section Size & Complexity Deltas

No section size/complexity changes.

Rule Deltas

No rule score changes.

Published Write Surface

14 of 48 sections publish write capability, 23 interfaces (0).

Interface Surface

No new interfaces or interface methods.

Diff Size

bucket added deleted
code 3 2
docs 3 0

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9854b6469

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Sections/Humans.GoogleIntegration/Views/Google/Accounts.cshtml
The combined-recovery acceptance criterion in workspace-account-provisioning.md
still specified the exact two-line pw/2fa clipboard payload. Update it to the
new payload (credentials, one-time-code blurb, absolute /Guide/TwoStepVerification
link) and note the password-only fallback when no backup code came back.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X9bnuNRMZfUyxdMcJz2FRQ
@peterdrier
peterdrier merged commit 8a27612 into main Sep 22, 2026
6 checks passed
@peterdrier
peterdrier deleted the claude/wonderful-thompson-nan2e0 branch September 22, 2026 20:00
peterdrier added a commit that referenced this pull request Sep 22, 2026
A steward whose first subscribe_pr_activity fails and only succeeds on a
later retry has a window in which review comments and failed checks were
never queued. Nothing polls, so those events were silently lost: the
steward just waited for new ones. Seen on #1794.

Require one read-only, counts-only check of the PR right after a late
subscribe, classified and dispatched like any other wake. The fast path
(subscribe succeeds at spawn) is unchanged.


Claude-Session: https://claude.ai/code/session_01X9bnuNRMZfUyxdMcJz2FRQ

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants