Repository navigation
feat(auth-worker): 新規登録画面に利用規約とプライバシーポリシーへの同意文を足す - #568
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
新規登録のアドレス入力とコード入力の両方の form に、利用規約・プライバシーポリシーへの同意文と未成年向けの案内を置く。アカウントが作られるのは /signup/verify なので、その送信の直前にも読めるようにする。ログイン画面には同意文を出さず、画面の下に 2 本のリンクだけを置く。URL は login-page.tsx の LEGAL_URLS に 1 箇所で持つ。
tanahiro2010
force-pushed
the
feat/signup-terms-consent
branch
from
November 20, 2026 12:44
dcd7525 to
c4d78b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
何を変えたか
under18.dev で公開した利用規約(https://under18.dev/terms/ 「6. u18 Identity(アカウント)」)とプライバシーポリシー(https://under18.dev/privacy/ 「4. u18 Identity(アカウント)について」)へのリンクを、ログイン・新規登録の画面に出す。
新規登録(
/signup)「確認コードを送る」と同じ form の中に、次の 2 文を置いた。利用規約とプライバシーポリシーはリンクにしている。
コード入力の段(
/signup/verifyの form)にも同じ文を置いた。 アカウントが作られるのは/signup/startではなく/signup/verifyの送信なので、作る操作の直前に読める位置にも出す。最初の段で流し読みしたことだけを同意の根拠にしない。ログイン(
/login)同意文は出さない。ログインは同意を取る場面ではないので、「アカウントをお持ちでない方」の下に「利用規約 / プライバシーポリシー」のリンクだけを置いた。
実装で決めたこと
login-page.tsxのLEGAL_URLSに 1 箇所で持ち、TermsLink/PrivacyLink/SignupConsentから使うtargetとrelは付けない。 新しいタブでは開かないのでnoopenerは要らない。auth-worker のReferrer-Policyはsame-origin(app.ts)なので、別オリジンの under18.dev へは参照元が送られず、return_toを載せた/login?...の URL が渡ることもない。noreferrerも要らないpageSecurityHeaders)は遷移先を縛らないので、外部リンクのために緩めたものは無い。インラインの style / script も足していないLINK_TEXT_CLASS(リンクの下線つき)とflex/flex-col/gap-1だけで、どれも既に配信している CSS にあるmodeだけで決まる。 入力されたアドレスでは変わらないので、登録済みと未登録で応答が同じになる既存の性質(「アカウントの有無を漏らさない」の各テスト)はそのまま触らなかったこと
新規登録のコード入力の段のボタンは「ログイン」のままにしている(このPRの範囲外)。
確認したこと
signup.ui.test.ts: 2 つの form の中に同意文・未成年向けの文・2 本のリンクがあること、target="_blank"が無いことlogin.ui.test.ts: ログイン画面にリンクがあること、ログイン画面とコード入力の段に同意文が無いことpnpm lint/pnpm typecheck/pnpm --filter @u18/auth-worker test(75 ファイル 1169 件)がすべて通る