Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

LG-12713: Remove reCAPTCHA checkbox fallback #10454

Merged
merged 6 commits into from
Apr 22, 2024

Conversation

aduth
Copy link
Member

@aduth aduth commented Apr 17, 2024

馃帿 Ticket

LG-12713

馃洜 Summary of changes

Removes the reCAPTCHA checkbox screen as a fallback when failing the invisible analysis, and replaces it with an error message informing the user that we cannot process their request.

馃摐 Testing Plan

Verify that you see an error message after submitting phone setup with a failing reCAPTCHA score:

Prerequisite: Configure score threshold in config/application.yml:

phone_recaptcha_score_threshold: 0.6
  1. Go to http://localhost:3000
  2. Sign in or create an account
  3. Add a phone as an MFA method (select phone during MFA selection in account creation, or choose "Add phone number" from account dashboard after signing in)
  4. Enter an international phone number (e.g. +610491570006)
  5. In "reCAPTCHA score: (0.0 - 1.0) Internal Only" debugger, enter a score below the configured threshold (0.4)
  6. Click "Send code"
  7. Observe error message (refer to screenshots below)

馃憖 Screenshots

Before After
image image

changelog: Internal, Spam Mitigation, Remove reCAPTCHA checkbox fallback for failed invisible assessment
@aduth aduth requested a review from a team April 17, 2024 18:27
Comment on lines +271 to +272
recaptcha_site_key: ''
recaptcha_secret_key: ''
Copy link
Member Author

Choose a reason for hiding this comment

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

Will need to make sure this renamed configuration is in place in all deployed environments before merging.

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO it would be easier to not rename the credentials

@aduth aduth marked this pull request as ready for review April 17, 2024 18:29
app/controllers/users/phone_setup_controller.rb Outdated Show resolved Hide resolved
app/services/analytics_events.rb Show resolved Hide resolved
Comment on lines +271 to +272
recaptcha_site_key: ''
recaptcha_secret_key: ''
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO it would be easier to not rename the credentials

@aduth aduth merged commit 3fafe62 into main Apr 22, 2024
2 checks passed
@aduth aduth deleted the aduth-recaptcha-checkbox-score-threshold branch April 22, 2024 15:45
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.

None yet

2 participants