-
Notifications
You must be signed in to change notification settings - Fork 1
fix: added recaptcha message in registration page #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -119,7 +119,7 @@ const RegistrationPage = (props) => { | |||||||||||||
| ); | ||||||||||||||
|
|
||||||||||||||
| const hideUsernameField = flags.autoGeneratedUsernameEnabled | ||||||||||||||
| || autoGeneratedUsernameExpVariation === AUTO_GENERATED_USERNAME_REGISTRATION_EXP_VARIATION; | ||||||||||||||
| || autoGeneratedUsernameExpVariation === AUTO_GENERATED_USERNAME_REGISTRATION_EXP_VARIATION; | ||||||||||||||
| /** | ||||||||||||||
| * Set the userPipelineDetails data in formFields for only first time | ||||||||||||||
| */ | ||||||||||||||
|
|
@@ -333,9 +333,9 @@ const RegistrationPage = (props) => { | |||||||||||||
| currentProvider={currentProvider} | ||||||||||||||
| /> | ||||||||||||||
| {(autoSubmitRegForm && !errorCode.type) | ||||||||||||||
| || (!autoGeneratedUsernameExpVariation && !( | ||||||||||||||
| autoGeneratedUsernameExpVariation === NOT_INITIALIZED | ||||||||||||||
| || registrationEmbedded || !!tpaHint || !!currentProvider)) | ||||||||||||||
| || (!autoGeneratedUsernameExpVariation && !( | ||||||||||||||
| autoGeneratedUsernameExpVariation === NOT_INITIALIZED | ||||||||||||||
| || registrationEmbedded || !!tpaHint || !!currentProvider)) | ||||||||||||||
| ? ( | ||||||||||||||
| <div className="mw-xs mt-5 text-center"> | ||||||||||||||
| <Spinner animation="border" variant="primary" id="tpa-spinner" /> | ||||||||||||||
|
|
@@ -415,6 +415,11 @@ const RegistrationPage = (props) => { | |||||||||||||
| {errors.captchaError} | ||||||||||||||
| </div> | ||||||||||||||
| )} | ||||||||||||||
| <div className="mt-2 text-muted micro"> | ||||||||||||||
| This site is protected by reCAPTCHA Enterprise and the Google | ||||||||||||||
| <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer"> Privacy Policy</a> and | ||||||||||||||
| <a href="https://policies.google.com/terms" target="_blank" rel="noopener noreferrer"> Terms of Service</a> apply. | ||||||||||||||
|
Comment on lines
+419
to
+421
|
||||||||||||||
| This site is protected by reCAPTCHA Enterprise and the Google | |
| <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer"> Privacy Policy</a> and | |
| <a href="https://policies.google.com/terms" target="_blank" rel="noopener noreferrer"> Terms of Service</a> apply. | |
| This site is protected by reCAPTCHA Enterprise and the Google{' '} | |
| <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Policy</a>{' '}and{' '} | |
| <a href="https://policies.google.com/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a> apply. |
Copilot
AI
Mar 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new reCAPTCHA notice is hard-coded English text, but this page otherwise uses useIntl/messages for user-visible strings. Please move this notice into src/register/messages.jsx and render via formatMessage so it’s localizable (and consistent with the rest of the registration UI).
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -115,3 +115,7 @@ | |||||||||||||
| border: none; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .grecaptcha-badge { | ||||||||||||||
| visibility: hidden; | ||||||||||||||
|
Comment on lines
+119
to
+120
|
||||||||||||||
| .grecaptcha-badge { | |
| visibility: hidden; | |
| .registration-page { | |
| .grecaptcha-badge { | |
| visibility: hidden; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR introduces new user-facing UI (the reCAPTCHA notice + policy links) but there’s no test coverage ensuring it renders and the URLs are correct. Since
RegistrationPage.jsxalready has a comprehensive test suite, please add an assertion that this notice is present (and that the privacy/terms links point to the expected Google policy URLs).