-
Notifications
You must be signed in to change notification settings - Fork 619
add Turnstile captcha to login flow #6310
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6310 +/- ##
=======================================
Coverage 56.83% 56.83%
=======================================
Files 1168 1168
Lines 64793 64793
Branches 5258 5258
=======================================
Hits 36824 36824
Misses 27242 27242
Partials 727 727
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
652c0c0 to
0243525
Compare
0243525 to
6d0d8c0
Compare
6d0d8c0 to
a5d5e4a
Compare
Merge activity
|
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on integrating `Turnstile` CAPTCHA for enhanced security during the login process in the `LoginPage`. It modifies the `doLogin` function to include token validation and updates the UI to present the `Turnstile` challenge.
### Detailed summary
- Added `TURNSTILE_SITE_KEY` and `Turnstile` component to `LoginPage.tsx`.
- Introduced state management for `turnstileToken`.
- Updated `doLogin` function to accept `turnstileToken` and validate it.
- Enhanced error handling for login failures.
- Updated UI to display `Turnstile` CAPTCHA.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
a5d5e4a to
8823acb
Compare

PR-Codex overview
This PR focuses on integrating
Turnstilefor captcha verification during the login process in theLoginPage. It enhances thedoLoginfunction to validate the captcha and handle errors more effectively.Detailed summary
TURNSTILE_SITE_KEYandTurnstilecomponent toLoginPage.tsx.turnstileTokenstate to manage captcha token.doLoginfunction to acceptturnstileTokenand validate it.doLoginfunction.