Skip to content

fix: captcha not rendering for initial signup screen in classic login - #2677

Merged
ankita10119 merged 5 commits into
auth0:masterfrom
paebanks:ten-321
Oct 3, 2025
Merged

ankita10119 merged 5 commits into
auth0:masterfrom
paebanks:ten-321

Conversation

@paebanks

@paebanks paebanks commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor

Changes

When a custom login page that uses Lock.js is initialized with the initialScreen: "signUp" value, we expect the Lock widget to render the signup prompt first. We also expect the initialization logic to render a CAPTCHA widget if a CAPTCHA is expected to be completed for signups.

The initialization does not render the CAPTCHA widget accordingly. The end-user might encounter an error if they submit the signup prompt without having solved a captcha.

References

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language

Screenshots

Before fix: Captcha Required, but does not render when initialScreen is set to 'signUp'

Screenshot 2025-09-26 at 11 49 17 AM

After fix: Captcha required and is rendered when initialScreen is set to 'signUp'

Screenshot 2025-09-26 at 11 18 53 AM
Screen.Recording.2025-09-29.at.2.27.37.PM.mov
Screen.Recording.2025-09-29.at.1.40.48.PM.mov

Checklist

@paebanks
paebanks requested a review from a team as a code owner September 25, 2025 13:58
Comment thread src/core/remote_data.js Fixed
@codecov

codecov Bot commented Sep 26, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.67%. Comparing base (e89a37d) to head (5ebd87a).
⚠️ Report is 33 commits behind head on master.

Files with missing lines Patch % Lines
src/field/captcha/captcha_pane.jsx 0.00% 1 Missing and 1 partial ⚠️
src/core/actions.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2677      +/-   ##
==========================================
+ Coverage   42.54%   42.67%   +0.12%     
==========================================
  Files         120      120              
  Lines        3145     3152       +7     
  Branches      337      338       +1     
==========================================
+ Hits         1338     1345       +7     
+ Misses       1713     1712       -1     
- Partials       94       95       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ankita10119 ankita10119 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After testing and verifying the changes locally, these look good to me.

@ankita10119
ankita10119 enabled auto-merge (squash) October 3, 2025 13:32
@ankita10119
ankita10119 disabled auto-merge October 3, 2025 13:32
@ankita10119

ankita10119 commented Oct 3, 2025 •

Copy link
Copy Markdown
Contributor

@paebanks Please verify all your commits

@ankita10119
ankita10119 merged commit 71a9043 into auth0:master Oct 3, 2025
8 of 9 checks passed
@ankita10119 ankita10119 mentioned this pull request Oct 21, 2025
ankita10119 added a commit that referenced this pull request Oct 21, 2025
**Added**
- feat: add Claude Code PR Review workflow
[\#2679](#2679)
([ankita10119](https://github.com/ankita10119))

**Fixed**
- fix: captcha not rendering for initial signup screen in classic login
[\#2677](#2677)
([paebanks](https://github.com/paebanks))
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.

3 participants